From 1809fe87ad70cf537d110845dd57fdf20a6614fd Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 17 Jul 2023 06:23:17 +0000 Subject: kernel/lib: Fix itoa() blanking '0' git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@28 a8a8aea2-181d-ee11-89e8-15fd0e089fc4 --- sys/lib/string/itoa.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/lib') 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) { -- cgit v1.2.3