summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian <ian>2023-07-17 06:23:17 +0000
committerian <ian>2023-07-17 06:23:17 +0000
commit1809fe87ad70cf537d110845dd57fdf20a6614fd (patch)
tree8a171f6fa8bb7f9c13cdc637f6aed351d5591ca6
parentc0f3d0b101e42eb6b07c5f8dda88522220d620df (diff)
kernel/lib: Fix itoa() blanking '0'
git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@28 a8a8aea2-181d-ee11-89e8-15fd0e089fc4
-rw-r--r--sys/lib/string/itoa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/lib/string/itoa.c b/sys/lib/string/itoa.c
index c344161..5a80295 100644
--- a/sys/lib/string/itoa.c
+++ b/sys/lib/string/itoa.c
@@ -46,6 +46,7 @@ itoa_base10_convert(int64_t value, char *buf)
if (value == 0) {
buf[i++] = '0';
buf[i++] = '\0';
+ return buf;
}
if (value < 0) {