diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-05-02 20:41:06 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-05-02 20:41:06 -0400 |
commit | 0aa82b9e712f62170d7f433b9fb181cdc6a60a92 (patch) | |
tree | 13009569183ff3f087558fbdf29db65d800a0f04 /ifdata.c | |
parent | 3e03d4c45318bb0978e65850ec7f56bbb210d4f1 (diff) | |
download | moreutils-0aa82b9e712f62170d7f433b9fb181cdc6a60a92.tar.gz |
ifdata: Don't assume that all interface names are 6 characters or less, for instance "wmaster0" is longer. Increase the limit to 20 characters. Closes: #526654 (Thanks, Alan Pope)
Diffstat (limited to 'ifdata.c')
-rw-r--r-- | ifdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -246,7 +246,7 @@ struct if_stat *get_stats(const char *iface) { do { int items = fscanf(fd, - " %6[^:]:%llu %llu %llu %llu %llu %llu %llu %llu " + " %20[^:]:%llu %llu %llu %llu %llu %llu %llu %llu " "%llu %llu %llu %llu %llu %llu %llu %llu", name, &ifstat->in_bytes, &ifstat->in_packets, |