From 69300645752438c3e99e1b109df7a06b0f5f5b4b Mon Sep 17 00:00:00 2001 From: Letter Date: Mon, 17 Feb 2020 17:33:58 +0800 Subject: [PATCH] Update shell.c --- src/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell.c b/src/shell.c index 1caaead..a0aba4f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -412,6 +412,9 @@ signed char shellToDec(int value, char *buffer) { buffer[--i] = '-'; } + if (value == 0) { + buffer[--i] = '0'; + } return 11 - i; }