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_sql | |
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_sql')
-rw-r--r-- | src/char_sql/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index a0c780cb9..f7b97bc7a 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -4025,7 +4025,7 @@ int char_config_read(const char *cfgName) { } else if (strcmpi(w1, "start_point") == 0) { 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) |