Use MALLOC for d_strdup
This commit is contained in:
parent
f9474ecb00
commit
4abda27dd8
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue