diff options
Diffstat (limited to 'bwbar/build/patches/bwbar_proc_net_2.6.x_fix.patch')
-rw-r--r-- | bwbar/build/patches/bwbar_proc_net_2.6.x_fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bwbar/build/patches/bwbar_proc_net_2.6.x_fix.patch b/bwbar/build/patches/bwbar_proc_net_2.6.x_fix.patch new file mode 100644 index 00000000..c42be30d --- /dev/null +++ b/bwbar/build/patches/bwbar_proc_net_2.6.x_fix.patch @@ -0,0 +1,15 @@ +Author: Dmitry B. Khlonin <dmitry@dungeon.dorms.spbu.ru> +Description: extend width of parsed interface names +Bug-Debian: https://bugs.debian.org/246054 + +--- a/bwbar.c ++++ b/bwbar.c +@@ -317,7 +317,7 @@ + + /* Get interface info */ + do { +- if ( fscanf(pnd, " %6[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u", ++ if ( fscanf(pnd, " %15[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u", + ifc.name, + &ifc.r_bytes, &ifc.r_pkt, &ifc.r_err, &ifc.r_drop, + &ifc.r_fifo, &ifc.r_frame, &ifc.r_compr, &ifc.r_mcast, |