From bc8b2eee5101f990df522339d141b711d614ba67 Mon Sep 17 00:00:00 2001 From: Mike Massonnet Date: Sat, 22 Nov 2014 18:12:01 +0100 Subject: [PATCH] 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 */