aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 841838e..82b0352 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2178,7 +2178,7 @@ static char *coolsize(off_t size)
rem /= 10;
}
- if (i > 0 && i < 6) {
+ if (i > 0 && i < 6 && rem) {
ret = xstrlcpy(size_buf, xitoa(size), 11);
size_buf[ret - 1] = '.';