[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 01/01: Extra char for \0 on if_name

noreply at xfce.org noreply at xfce.org
Sat Nov 22 18:12:04 CET 2014


This is an automated email from the git hooks/post-receive script.

mmassonnet pushed a commit to branch master
in repository panel-plugins/xfce4-netload-plugin.

commit bc8b2eee5101f990df522339d141b711d614ba67
Author: Mike Massonnet <m8t at gandi.net>
Date:   Sat Nov 22 18:12:01 2014 +0100

    Extra char for \0 on if_name
---
 panel-plugin/net.h   |    2 +-
 panel-plugin/slurm.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/net.h b/panel-plugin/net.h
index 2cf9ecf..a268088 100644
--- a/panel-plugin/net.h
+++ b/panel-plugin/net.h
@@ -29,7 +29,7 @@
 #define UP_UPDATE_INTERVAL 20
 #define IP_UPDATE_INTERVAL 20
 #define IP_ADDRESS_LENGTH 64
-#define INTERFACE_NAME_LENGTH 32
+#define INTERFACE_NAME_LENGTH 33
 
 #ifndef gettext_noop
 #define gettext_noop(String) String
diff --git a/panel-plugin/slurm.h b/panel-plugin/slurm.h
index 01e98b2..4bf608b 100644
--- a/panel-plugin/slurm.h
+++ b/panel-plugin/slurm.h
@@ -10,7 +10,7 @@
 #define _SLURM_H_
 
 typedef struct IfData{
-    char if_name[32];       /* The device name given as start parameter*/
+    char if_name[33];       /* The device name given as start parameter*/
     int  if_speed;          /* The Interface speed */
     char if_speedstring[12]; /* the measuring unit like Mbit, kbit */
     int  if_id;             /* The ID which the interface inside the OS has */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list