diff options
Diffstat (limited to 'src/kernel/lib/stdlib/htoa.c')
-rw-r--r-- | src/kernel/lib/stdlib/htoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/lib/stdlib/htoa.c b/src/kernel/lib/stdlib/htoa.c index c4dbd5e..9cf57cc 100644 --- a/src/kernel/lib/stdlib/htoa.c +++ b/src/kernel/lib/stdlib/htoa.c @@ -6,7 +6,7 @@ static const char HTOA_TABLE[] = "0123456789ABCDEF"; char *htoa(u32 n) { - char *ret = (char *)kmalloc(10); + char *ret = (char *)malloc(10); int i = 0; while (n) { @@ -23,7 +23,7 @@ char *htoa(u32 n) ret[i] = 0; char *aux = strdup(ret); - kfree(ret); + free(ret); ret = aux; strinv(ret); |