After trying to contact the developer of i8krellm without success I’ve decided to post here an small patch to avoid a segfault of this plugin. i8krellm is a plugin for gkrellm to control fans on DELL notebooks via i8kutils.

Files:



Patch:
diff -rupN i8krellm-2.5/i8krellm.c ../i8krellm-2.5//i8krellm.c
--- i8krellm-2.5/i8krellm.c 2003-09-21 15:57:08.000000000 -0400
+++ ../i8krellm-2.5//i8krellm.c 2011-06-19 11:28:24.005620314 -0400
@@ -328,9 +328,8 @@ static struct _i8krellm_state _i8k_state

static void __i8k_draw_chart(void) {
- static gchar temp[12];
-
- memset(temp,0,12);
+ static gchar temp[12+2];
+ memset(temp,0,12+2);
strcpy(temp,"\t");
strcat(temp,&_i8k_state.temp_disp[0]);
gkrellm_draw_chartdata(_i8k_chart);