diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-01 21:10:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-01 22:44:20 +0300 |
commit | 75fb4a2dc483b0b66bb89200c0507827828dd09d (patch) | |
tree | a353f0751f17f230b9b6d991f8cc93271f0fa559 /src/map/atcommand.c | |
parent | aa3c85dc48617dbdb565d33b294cad2931b5ac73 (diff) | |
download | hercules-75fb4a2dc483b0b66bb89200c0507827828dd09d.tar.gz hercules-75fb4a2dc483b0b66bb89200c0507827828dd09d.tar.bz2 hercules-75fb4a2dc483b0b66bb89200c0507827828dd09d.tar.xz hercules-75fb4a2dc483b0b66bb89200c0507827828dd09d.zip |
Fix memory allocation error in atcommand.c
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index b9b4704bc..074ae2ec5 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -10263,7 +10263,7 @@ void atcommand_doload(void) { void atcommand_expand_message_table(void) { RECREATE(atcommand->msg_table, char **, ++atcommand->max_message_table); - RECREATE(atcommand->msg_table[atcommand->max_message_table - 1], char *, MAX_MSG); + CREATE(atcommand->msg_table[atcommand->max_message_table - 1], char *, MAX_MSG); } void do_init_atcommand(bool minimal) { |