X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fbrkstring.c;h=a9446fef299512d5409b596b09a7ae1540bb3c19;hp=acbba6a96998baf5426568cff658a948ed967f09;hb=b78007de9802005825390bee71dfce2306b42519;hpb=10eff860a28b96582526eb739fd0a55441669938 diff --git a/sbr/brkstring.c b/sbr/brkstring.c index acbba6a..a9446fe 100644 --- a/sbr/brkstring.c +++ b/sbr/brkstring.c @@ -30,7 +30,7 @@ brkstring(char *str, char *brksep, char *brkterm) /* allocate initial space for pointers on first call */ if (!broken) { len = NUMBROKEN; - broken = (char **)mh_xcalloc((size_t)len, sizeof(*broken)); + broken = mh_xcalloc(len, sizeof(*broken)); } /* @@ -42,8 +42,7 @@ brkstring(char *str, char *brksep, char *brkterm) /* enlarge pointer array, if necessary */ if (i >= len) { len += NUMBROKEN; - broken = mh_xrealloc(broken, - (size_t)(len * sizeof(*broken))); + broken = mh_xrealloc(broken, len * sizeof(*broken)); } /* handle separators */