stdlib: fix bad memset in calloc()

This commit is contained in:
Lephenixnoir 2021-09-25 15:16:24 +02:00
parent a0ceeefaf4
commit df4c13b007
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -9,6 +9,6 @@ void *calloc(size_t nmemb, size_t size)
return NULL;
void *mem = malloc(total_size);
if(mem) memset(mem, 0, size);
if(mem) memset(mem, 0, total_size);
return mem;
}