mirror_iproute2/misc
Phil Sutter 61170fd88d get rid of unnecessary fgets() buffer size limitation
fgets() will read at most size-1 bytes into the buffer and add a
terminating null-char at the end. Therefore it is not necessary to pass
a reduced buffer size when calling it.

This change was generated using the following semantic patch:

@@
identifier buf, fp;
@@
- fgets(buf, sizeof(buf) - 1, fp)
+ fgets(buf, sizeof(buf), fp)

Signed-off-by: Phil Sutter <phil@nwl.cc>
2015-11-29 11:48:24 -08:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
arpd.c get rid of unnecessary fgets() buffer size limitation 2015-11-29 11:48:24 -08:00
ifstat.c get rid of remaining -Wunused-result warnings 2015-11-29 11:48:24 -08:00
lnstat_util.c get rid of remaining -Wunused-result warnings 2015-11-29 11:48:24 -08:00
lnstat.c lnstat: fix header displaying mechanism 2015-11-23 15:54:05 -08:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
Makefile misc/Makefile: use PKG_CONFIG 2015-11-23 15:25:50 -08:00
nstat.c get rid of remaining -Wunused-result warnings 2015-11-29 11:48:24 -08:00
rtacct.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ss.c get rid of unnecessary fgets() buffer size limitation 2015-11-29 11:48:24 -08:00
ssfilter.h misc: remove extra blank line 2015-11-23 15:42:34 -08:00
ssfilter.y ss: Allow to specify sport/dport without ':' 2015-03-15 12:11:42 -07:00