summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-31 20:31:57 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-31 20:31:57 +0000
commit634bdec0ab92f420ad2e004790514b9350c663bd (patch)
treeef5e937d4863c62fdd79a1b4068791217004bc73
parent1150272fe0ef7330c35fcb8d31a59dd055cd490d (diff)
downloadhercules-634bdec0ab92f420ad2e004790514b9350c663bd.tar.gz
hercules-634bdec0ab92f420ad2e004790514b9350c663bd.tar.bz2
hercules-634bdec0ab92f420ad2e004790514b9350c663bd.tar.xz
hercules-634bdec0ab92f420ad2e004790514b9350c663bd.zip
Fixed memory corruption associated with afm files [SVN 1363: MouseJstr]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1363 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-SVN.txt1
-rw-r--r--src/map/map.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-SVN.txt b/Changelog-SVN.txt
index 0ad920c30..7745ed762 100644
--- a/Changelog-SVN.txt
+++ b/Changelog-SVN.txt
@@ -2,6 +2,7 @@
Date Added
03/31
+ * Fixed memory corruption associated with afm files [SVN 1363: MouseJstr]
* More pedantic g++ fixes so that it builds without any and
all warnings [SVN 1362: MouseJstr]
* Removed some #include's causing warnings on some platforms
diff --git a/src/map/map.c b/src/map/map.c
index c6c90b815..7dd073f4b 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2395,7 +2395,7 @@ static int map_readafm(int m,char *fn) {
size_t size;
char afm_line[65535];
- int afm_size[1];
+ int afm_size[2];
FILE *afm_file;
char *str;