fix zcalloc bug
This commit is contained in:
parent
cf734a480c
commit
cd16d67663
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ char * slug_compile(char * str, int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
char * out = NULL;
|
char * out = NULL;
|
||||||
if ((out = zcalloc(200)) == NULL) {
|
if ((out = zcalloc(sizeof(char) * 200)) == NULL) {
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue