fix zcalloc bug

This commit is contained in:
c9s 2014-05-27 14:18:45 +08:00
parent cf734a480c
commit cd16d67663

View file

@ -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);
} }