From 12f6a64596959c643c7ad1f3b9f01b1a30c78205 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 14 Nov 2020 16:08:25 +0000 Subject: Initial revision --- bwbar/build/patches/bwbar_proc_net_2.6.x_fix.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bwbar/build/patches/bwbar_proc_net_2.6.x_fix.patch 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 +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, -- cgit v1.2.3