4bb97cfa93
Always use snprintf()'s return value, since discarding it is a style bug at best and using it here gives slightly simpler code and better error checking. Use snprintf() in putlongdouble() the same as in putfloat(). (1.25 changed most sprintf()'s to snprintf()'s to fix non-bugs without changing the logic to use the result of snprintf(); 1.27 restored one of the sprintf()s by cloning a stale version of putfloat().) Don't print a too-long field in the unlikely case that the fallback to M units in putint() leaves the field still too long. (The fallback to printing stars was lost in rev.1.58 when the fallback to M units was added.) |
||
---|---|---|
.. | ||
cmds.c | ||
cmdtab.c | ||
convtbl.c | ||
convtbl.h | ||
devs.c | ||
devs.h | ||
extern.h | ||
fetch.c | ||
icmp6.c | ||
icmp.c | ||
ifcmds.c | ||
ifstat.c | ||
iostat.c | ||
ip6.c | ||
ip.c | ||
keyboard.c | ||
main.c | ||
Makefile | ||
mbufs.c | ||
mode.c | ||
mode.h | ||
netcmds.c | ||
netstat.c | ||
pigs.c | ||
swap.c | ||
systat.1 | ||
systat.h | ||
tcp.c | ||
vmstat.c |