summaryrefslogtreecommitdiff
path: root/ifdata.c
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-05-02 20:41:06 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-05-02 20:41:06 -0400
commit0aa82b9e712f62170d7f433b9fb181cdc6a60a92 (patch)
tree13009569183ff3f087558fbdf29db65d800a0f04 /ifdata.c
parent3e03d4c45318bb0978e65850ec7f56bbb210d4f1 (diff)
downloadmoreutils-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ifdata.c b/ifdata.c
index f8fa024..ba68edc 100644
--- a/ifdata.c
+++ b/ifdata.c
@@ -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,