Missed a few occurences of strdup (followup to r10468)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10469 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
cce7ebedf4
commit
3206b83c1c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user