diff options
Diffstat (limited to 'libs/libc/conv.c')
-rw-r--r-- | libs/libc/conv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libc/conv.c b/libs/libc/conv.c index 670fdb3..bb68d7b 100644 --- a/libs/libc/conv.c +++ b/libs/libc/conv.c @@ -105,7 +105,7 @@ char *itoa(int n) if (negative) { char *aux = (char *)malloc((u32)(sz + 2)); - strcpy(aux, ret); + strlcpy(aux, ret, sz + 2); aux[sz] = '-'; aux[sz + 1] = 0; free(ret); |