This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix GCC8 warning
master
Arun Prakash Jana
6 years ago
parent
41db3c460f
commit
2fe2204a9d
No known key found for this signature in database
GPG Key ID:
A75979F35C080412
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
nnn.c
+ 1
- 1
nnn.c
View File
@@ -1507,7 +1507,7 @@ static char *coolsize(off_t size)
rem /= 10;
}
if (i > 0)
if (i > 0
&& i < 6
)
snprintf(size_buf, 12, "%lu.%0*lu%c", (ulong)size, i, (ulong)rem, U[i]);
else
snprintf(size_buf, 12, "%lu%c", (ulong)size, U[i]);
Write
Preview
Loading…
Cancel
Save