Use MALLOC for d_strdup

This commit is contained in:
Kp 2013-07-07 19:55:59 +00:00
parent f9474ecb00
commit 4abda27dd8

View file

@ -118,7 +118,7 @@ char *d_strdup(char *str)
{ {
char *newstr; char *newstr;
newstr = d_malloc(strlen(str) + 1); MALLOC(newstr, char, strlen(str) + 1);
strcpy(newstr, str); strcpy(newstr, str);
return newstr; return newstr;