diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-18 09:49:02 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-18 09:49:02 +0000 |
commit | ac17bf28432aa3c445a97f66ff82af6050fa176a (patch) | |
tree | 36ab4d06e195d32d1b483eae4fb4e63e8d4eff49 | |
parent | 740d7a0fbe07d1ff3bac9377fed6a254e55b4e0e (diff) | |
download | hercules-ac17bf28432aa3c445a97f66ff82af6050fa176a.tar.gz hercules-ac17bf28432aa3c445a97f66ff82af6050fa176a.tar.bz2 hercules-ac17bf28432aa3c445a97f66ff82af6050fa176a.tar.xz hercules-ac17bf28432aa3c445a97f66ff82af6050fa176a.zip |
Fixed incorrect array capacity / format string for txt mapreg loading code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13090 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/mapreg_txt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mapreg_txt.c b/src/map/mapreg_txt.c index 53d05c98b..555b773ee 100644 --- a/src/map/mapreg_txt.c +++ b/src/map/mapreg_txt.c @@ -74,7 +74,7 @@ static void script_load_mapreg(void) int n,s,i; // read name and index - if( sscanf(line, "%255[^,],%d\t%n", varname,&i,&n) != 2 && + if( sscanf(line, "%32[^,],%d\t%n", varname,&i,&n) != 2 && (i = 0, sscanf(line,"%[^\t]\t%n", varname,&n) != 1) ) continue; |