summaryrefslogtreecommitdiff
path: root/src/common/grfio.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-05 14:01:06 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-05 14:01:06 +0000
commita79359182bb925d2f64dc82adccbf4333cdcd01d (patch)
tree1cc7fd51d48d6653421585a3ef5c750a8317e95f /src/common/grfio.c
parent9dc87bf9db25237ae4d904f92311352e6171d372 (diff)
downloadhercules-a79359182bb925d2f64dc82adccbf4333cdcd01d.tar.gz
hercules-a79359182bb925d2f64dc82adccbf4333cdcd01d.tar.bz2
hercules-a79359182bb925d2f64dc82adccbf4333cdcd01d.tar.xz
hercules-a79359182bb925d2f64dc82adccbf4333cdcd01d.zip
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
Diffstat (limited to 'src/common/grfio.c')
-rw-r--r--src/common/grfio.c6
1 files changed, 3 insertions, 3 deletions
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);
}