diff --git a/tc.alloc.c b/tc.alloc.c index b87f9e9..06e0405 100644 --- a/tc.alloc.c +++ b/tc.alloc.c @@ -348,10 +348,12 @@ calloc(size_t i, size_t j) { #ifndef lint char *cp; + volatile size_t k; i *= j; cp = xmalloc(i); - memset(cp, 0, i); + k = i; + memset(cp, 0, k); return ((memalign_t) cp); #else