Jelajahi Sumber

Fixed memory corruption associated with afm files [SVN 1363: MouseJstr]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1363 54d463be-8e91-2dee-dedb-b68131a5f0ec
amber 20 tahun lalu
induk
melakukan
a26bc148fb
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      Changelog-SVN.txt
  2. 1 1
      src/map/map.c

+ 1 - 0
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

+ 1 - 1
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;