stdlib: fix bad memset in calloc()

This commit is contained in:
Lephenixnoir 2021-09-25 15:16:24 +02:00
parent a0ceeefaf4
commit df4c13b007
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

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