aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/msh.c')
-rw-r--r--shell/msh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/msh.c b/shell/msh.c
index ac49af14c..d81a00122 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -58,10 +58,10 @@ static char *utoa_to_buf(unsigned n, char *buf, unsigned buflen)
58 for (i = 1000000000; i; i /= 10) { 58 for (i = 1000000000; i; i /= 10) {
59 res = n / i; 59 res = n / i;
60 if (res || out || i == 1) { 60 if (res || out || i == 1) {
61 if (!--buflen) break; 61 if (!--buflen) break;
62 out++; 62 out++;
63 n -= res*i; 63 n -= res*i;
64 *buf++ = '0' + res; 64 *buf++ = '0' + res;
65 } 65 }
66 } 66 }
67 } 67 }