Extra char for \0 on if_name

master
Mike Massonnet 2014-11-22 18:12:01 +01:00
parent 18e253fc22
commit bc8b2eee51
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#define UP_UPDATE_INTERVAL 20 #define UP_UPDATE_INTERVAL 20
#define IP_UPDATE_INTERVAL 20 #define IP_UPDATE_INTERVAL 20
#define IP_ADDRESS_LENGTH 64 #define IP_ADDRESS_LENGTH 64
#define INTERFACE_NAME_LENGTH 32 #define INTERFACE_NAME_LENGTH 33
#ifndef gettext_noop #ifndef gettext_noop
#define gettext_noop(String) String #define gettext_noop(String) String

View File

@ -10,7 +10,7 @@
#define _SLURM_H_ #define _SLURM_H_
typedef struct IfData{ 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 */ int if_speed; /* The Interface speed */
char if_speedstring[12]; /* the measuring unit like Mbit, kbit */ char if_speedstring[12]; /* the measuring unit like Mbit, kbit */
int if_id; /* The ID which the interface inside the OS has */ int if_id; /* The ID which the interface inside the OS has */