From a79359182bb925d2f64dc82adccbf4333cdcd01d Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 5 May 2007 14:01:06 +0000 Subject: Missed a few occurences of strdup (followup to r10468) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10469 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/grfio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/grfio.c b/src/common/grfio.c index 314581abc..9c557849a 100644 --- a/src/common/grfio.c +++ b/src/common/grfio.c @@ -713,7 +713,7 @@ static void grfio_resourcecheck(void) FILELIST fentry; memcpy(&fentry, entry, sizeof(FILELIST)); strncpy(fentry.fn, src, sizeof(fentry.fn) - 1); - fentry.fnd = strdup(dst); + fentry.fnd = aStrdup(dst); filelist_modify(&fentry); i++; } @@ -741,7 +741,7 @@ static void grfio_resourcecheck(void) FILELIST fentry; memcpy(&fentry, entry, sizeof(FILELIST)); strncpy(fentry.fn, src, sizeof(fentry.fn) - 1); - fentry.fnd = strdup(dst); + fentry.fnd = aStrdup(dst); filelist_modify(&fentry); i++; } @@ -768,7 +768,7 @@ static int grfio_add(char* fname) memset(gentry_table + (gentry_maxentry - GENTRY_ADDS), 0, sizeof(char*) * GENTRY_ADDS); } - gentry_table[gentry_entrys++] = strdup(fname); + gentry_table[gentry_entrys++] = aStrdup(fname); return grfio_entryread(fname, gentry_entrys - 1); } -- cgit v1.2.3-70-g09d2