Browse Source

Revert "Move declarations up"

This reverts commit afdfcecb9c.
master
Arun Prakash Jana 5 years ago
parent
commit
b7b3dbac22
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c View File

@@ -2177,13 +2177,13 @@ static char *coolsize(off_t size)
}

if (i > 0 && i < 6 && rem) {
ret = xstrlcpy(size_buf, xitoa(size), 11);
size_buf[ret - 1] = '.';

char *frac = xitoa(rem);
size_t toprint = i > 3 ? 3 : i;
size_t len = strlen(frac);

ret = xstrlcpy(size_buf, xitoa(size), 11);
size_buf[ret - 1] = '.';

if (len < toprint) {
size_buf[ret] = size_buf[ret + 1] = size_buf[ret + 2] = '0';
xstrlcpy(size_buf + ret + (toprint - len), frac, (toprint - len) + 1);


Loading…
Cancel
Save