diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-06 21:43:22 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-06 21:43:22 +0000 |
commit | 6ac92e521000e26a5d4034d5c881f08313596aaa (patch) | |
tree | e6213a76d0aad5843540c9e3889cdd401deec1ec /src/char | |
parent | ded1f674755335a9cbb5c08e321b4a4c092a0e8d (diff) | |
download | hercules-6ac92e521000e26a5d4034d5c881f08313596aaa.tar.gz hercules-6ac92e521000e26a5d4034d5c881f08313596aaa.tar.bz2 hercules-6ac92e521000e26a5d4034d5c881f08313596aaa.tar.xz hercules-6ac92e521000e26a5d4034d5c881f08313596aaa.zip |
- Fixed the start_point setting smashing t3h stack in some situations
- Fixed some over/under-dimensioned arrays (the map length defines already reserve space for the string terminator)
- Fixed an unupdated define making Warp Portal fail with an error
- Fixed some skill entries of the Galion mob
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10168 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index 46379bf30..a9c9532e1 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -4152,9 +4152,9 @@ int char_config_read(const char *cfgName) { } else if (strcmpi(w1, "save_log") == 0) { save_log = config_switch(w2); } else if (strcmpi(w1, "start_point") == 0) { - char map[MAP_NAME_LENGTH]; + char map[MAP_NAME_LENGTH_EXT]; int x, y; - if (sscanf(w2, "%16[^,],%d,%d", map, &x, &y) < 3) + if (sscanf(w2, "%15[^,],%d,%d", map, &x, &y) < 3) continue; start_point.map = mapindex_name2id(map); if (!start_point.map) { |