mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-29 13:03:38 +01:00
stdlib: fix bad memset in calloc()
This commit is contained in:
parent
a0ceeefaf4
commit
df4c13b007
1 changed files with 1 additions and 1 deletions
|
@ -9,6 +9,6 @@ void *calloc(size_t nmemb, size_t size)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
void *mem = malloc(total_size);
|
void *mem = malloc(total_size);
|
||||||
if(mem) memset(mem, 0, size);
|
if(mem) memset(mem, 0, total_size);
|
||||||
return mem;
|
return mem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue