summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-06-01 04:01:16 +0200
committerGitHub <noreply@github.com>2020-06-01 04:01:16 +0200
commitb9f7d1439c84b64facaf7d2875adc29110c65cf4 (patch)
tree808162f3083ac05b3221c7ffcdb4e52ffd4fb90a /src/char
parent6188b2eb25c9fdcd33cfbef50e3dd41774f37994 (diff)
parent410e04c2562f7d7dd9a2f242d6ef821dbe0b2fc5 (diff)
downloadhercules-b9f7d1439c84b64facaf7d2875adc29110c65cf4.tar.gz
hercules-b9f7d1439c84b64facaf7d2875adc29110c65cf4.tar.bz2
hercules-b9f7d1439c84b64facaf7d2875adc29110c65cf4.tar.xz
hercules-b9f7d1439c84b64facaf7d2875adc29110c65cf4.zip
Merge pull request #2713 from 4144/updatepackets
Update packets up to 2020-05-20
Diffstat (limited to 'src/char')
-rw-r--r--src/char/mapif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c
index f0c886586..ed0133da3 100644
--- a/src/char/mapif.c
+++ b/src/char/mapif.c
@@ -559,7 +559,7 @@ static int mapif_guild_withdraw(int guild_id, int account_id, int char_id, int f
WBUFL(buf, 6) = account_id;
WBUFL(buf, 10) = char_id;
WBUFB(buf, 14) = flag;
- memcpy(WBUFP(buf, 15), mes, 40);
+ safestrncpy(WBUFP(buf, 15), mes, 40);
memcpy(WBUFP(buf, 55), name, NAME_LENGTH);
mapif->sendall(buf, 55 + NAME_LENGTH);
ShowInfo("int_guild: guild withdraw (%d - %d: %s - %s)\n", guild_id, account_id, name, mes);