File xfce4-netload-plugin-0.4.0.patch of Package xfce4-panel-plugins

--- xfce4-netload-plugin-0.4.0/panel-plugin/wormulon/linux.c
+++ xfce4-netload-plugin-0.4.0/panel-plugin/wormulon/linux.c
@@ -101,11 +101,11 @@
 
     /* do not parse the first two lines as they only contain static garbage */
     fseek(proc_net_dev, 0, SEEK_SET);
-    fgets(buffer, BUFSIZ-1, proc_net_dev);
-    fgets(buffer, BUFSIZ-1, proc_net_dev);
+    fgets(buffer, BUFSIZE-1, proc_net_dev);
+    fgets(buffer, BUFSIZE-1, proc_net_dev);
 
     interfacefound = 0;
-    while (fgets(buffer, BUFSIZ-1, proc_net_dev) != NULL)
+    while (fgets(buffer, BUFSIZE-1, proc_net_dev) != NULL)
     {
         /* find the device name and substitute ':' with '\0' */
         ptr = buffer;
openSUSE Build Service is sponsored by