summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-05-06 17:52:22 +0200
committerGitHub <noreply@github.com>2018-05-06 17:52:22 +0200
commitb889108f6dea3e1765681b9eaf4a39a18c24eeec (patch)
tree40e2b55d2e4d1f4a38a0a36be7f9920dd9637ce4 /src/map/atcommand.c
parentd6785d389cbee4f34078f6762626ca61b2d6cc25 (diff)
parented8fac40e2d6cbf11b9a4a1a8182cd28871e3e6d (diff)
downloadhercules-b889108f6dea3e1765681b9eaf4a39a18c24eeec.tar.gz
hercules-b889108f6dea3e1765681b9eaf4a39a18c24eeec.tar.bz2
hercules-b889108f6dea3e1765681b9eaf4a39a18c24eeec.tar.xz
hercules-b889108f6dea3e1765681b9eaf4a39a18c24eeec.zip
Merge pull request #2028 from 4144/warnings
Fix some possible buffer overflows.
Diffstat (limited to 'src/map/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)