From 0c42180571429f5a11ada59e3adc8fff5711c073 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 20 May 2007 20:40:34 +0000 Subject: - Fixed one missed malloc->aMallocA typo, causing memory deallocation problems - Some small trunk-stable formatting synchronization git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10595 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/grfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/grfio.c b/src/common/grfio.c index 9c557849a..f5de9fbdb 100644 --- a/src/common/grfio.c +++ b/src/common/grfio.c @@ -445,7 +445,7 @@ void* grfio_reads(char* fname, int* size) lentry.declen = ftell(in); } fseek(in,0,SEEK_SET); - buf2 = (unsigned char *)malloc(lentry.declen + 1024); + buf2 = (unsigned char *)aMallocA(lentry.declen + 1024); fread(buf2, 1, lentry.declen, in); fclose(in); strncpy(lentry.fn, fname, sizeof(lentry.fn) - 1); -- cgit v1.2.3-70-g09d2