summaryrefslogtreecommitdiff
path: root/src/common/grfio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/grfio.c')
-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);