summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-20 20:40:34 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-20 20:40:34 +0000
commit0c42180571429f5a11ada59e3adc8fff5711c073 (patch)
tree811ce8e6c7f572f07bab57a37679b71ffbfe567b /src/common
parentb6ea55b755afff6cd8353896353272563498bfe2 (diff)
downloadhercules-0c42180571429f5a11ada59e3adc8fff5711c073.tar.gz
hercules-0c42180571429f5a11ada59e3adc8fff5711c073.tar.bz2
hercules-0c42180571429f5a11ada59e3adc8fff5711c073.tar.xz
hercules-0c42180571429f5a11ada59e3adc8fff5711c073.zip
- 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
Diffstat (limited to 'src/common')
-rw-r--r--src/common/grfio.c2
1 files changed, 1 insertions, 1 deletions
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);