This commit is contained in:
jl777
2019-03-25 10:12:09 -11:00
parent 09589bd0e0
commit ce31112c57

View File

@@ -1871,7 +1871,7 @@ char *clonestr(char *str)
str = (char *)"<nullstr>";
}
len = strlen(str);
clone = (char *)malloc(len+16);
clone = (char *)calloc(1,len+16);
strcpy(clone,str);
return(clone);
}