mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-01 13:54:12 +00:00
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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| arpd.c | ||
| ifstat.c | ||
| lnstat_util.c | ||
| lnstat.c | ||
| lnstat.h | ||
| Makefile | ||
| nstat.c | ||
| rtacct.c | ||
| ss.c | ||
| ssfilter.h | ||
| ssfilter.y | ||