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)
for (i = 1000000000; i; i /= 10) {
res = n / i;
if (res || out || i == 1) {
- if (!--buflen) break;
- out++;
- n -= res*i;
- *buf++ = '0' + res;
+ if (!--buflen) break;
+ out++;
+ n -= res*i;
+ *buf++ = '0' + res;
}
}
}