From 634bdec0ab92f420ad2e004790514b9350c663bd Mon Sep 17 00:00:00 2001 From: amber Date: Thu, 31 Mar 2005 20:31:57 +0000 Subject: 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 --- Changelog-SVN.txt | 1 + src/map/map.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2