~cairo-dock-team/cairo-dock-plug-ins/plug-ins

« back to all changes in this revision

Viewing changes to System-Monitor/src/applet-struct.h

  • Committer: Matthieu Baerts
  • Date: 2013-10-28 21:55:12 UTC
  • Revision ID: matttbe@gmail.com-20131028215512-ue3ezv533lftg4cv
System Monitor: fixed a possible crash if we want to display more than 4 values
if 5 or 6 values were displayed, some data were corrupted due to the use of memcpy out of bounds of the corresponding variable

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <cairo-dock.h>
25
25
 
26
 
#define CD_SYSMONITOR_NB_MAX_VALUES 4
 
26
#define CD_SYSMONITOR_NB_MAX_VALUES 6
27
27
 
28
28
#define CD_SYSMONITOR_PROC_FS "/proc"
29
29