Commit 21f41c75 authored by Robert Ricci's avatar Robert Ricci

Fix compile error on newer versions of gcc

parent 4c0104f6
......@@ -846,10 +846,9 @@ char *
newstr(str)
char *str;
{
char *malloc();
register char *np;
if ((np = malloc((unsigned) strlen(str) + 1)) == NULL)
if ((np = (char*)malloc((unsigned) strlen(str) + 1)) == NULL)
die("malloc: out of memory");
return(strcpy(np, str));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment