X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=misc.c;h=225d1563f9e048b981bff605bb7283e6ad9c189e;hb=49aa0214d72eb609845e292772819de414034c55;hp=1213dd57297d734797f3cc1c6d5ab3de91b1e2e1;hpb=978de1f80f0d0ac1dfee83a8f6cb4cb89220e32a;p=pkg%2Fabook.git diff --git a/misc.c b/misc.c index 1213dd5..225d156 100644 --- a/misc.c +++ b/misc.c @@ -232,7 +232,7 @@ getaline(FILE *f) len = 0; size = thres; - buf = abook_malloc(size); + buf = (char *)abook_malloc(size); while (fgets(buf+len, size-len, f) != NULL) { len += strlen(buf+len);