Return to common.c CVS log | Up to [local] / src / usr.bin / rdist |
version 1.8, 1999/02/04 23:18:57 | version 1.9, 1999/05/14 20:19:11 | ||
---|---|---|---|
|
|
||
char *nstr; | char *nstr; | ||
if ((nstr = strdup(str)) == NULL) | if ((nstr = strdup(str)) == NULL) | ||
fatalerr("Cannot malloc %d bytes of memory.", strlen(str)); | fatalerr("Cannot malloc %d bytes of memory.", strlen(str) + 1); | ||
return(nstr); | return(nstr); | ||
} | } |