summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-02 21:07:27 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-02 21:07:27 +0300
commit4cf07e2dd8ead6470d15e254fdb0784329b4e131 (patch)
tree3f3881cd7259e777f14df86fd13f3619bcdd71d0
parent61f870f921175e0d5fadcb2c318e94e102a0f594 (diff)
downloadhercules-4cf07e2dd8ead6470d15e254fdb0784329b4e131.tar.gz
hercules-4cf07e2dd8ead6470d15e254fdb0784329b4e131.tar.bz2
hercules-4cf07e2dd8ead6470d15e254fdb0784329b4e131.tar.xz
hercules-4cf07e2dd8ead6470d15e254fdb0784329b4e131.zip
Fix possible buffer overflow in atcommand.c
-rw-r--r--src/map/atcommand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9deed0098..90ba73fa6 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6192,7 +6192,7 @@ ACMD(cleanarea) {
*------------------------------------------*/
ACMD(npctalk)
{
- char name[NAME_LENGTH],mes[100],temp[100];
+ char name[NAME_LENGTH], mes[100], temp[200];
struct npc_data *nd;
bool ifcolor=(*(info->command + 7) != 'c' && *(info->command + 7) != 'C')?0:1;
unsigned int color = 0;
@@ -6229,7 +6229,7 @@ ACMD(npctalk)
ACMD(pettalk)
{
- char mes[100],temp[100];
+ char mes[100], temp[200];
struct pet_data *pd;
if (battle_config.min_chat_delay) {
@@ -7034,7 +7034,7 @@ ACMD(homhungry)
*------------------------------------------*/
ACMD(homtalk)
{
- char mes[100],temp[100];
+ char mes[100], temp[200];
if (battle_config.min_chat_delay) {
if (DIFF_TICK(sd->cantalk_tick, timer->gettick()) > 0)