diff --exclude='*~' -Naur gai-0.5.8.orig/gai/gai-pref2.c gai-0.5.8/gai/gai-pref2.c --- gai-0.5.8.orig/gai/gai-pref2.c 2004-09-12 05:17:58.000000000 -0300 +++ gai-0.5.8/gai/gai-pref2.c 2005-04-09 20:43:03.000000000 -0300 @@ -870,7 +870,7 @@ if(j == g_list_length((GList *)((int *)iw[i].result)[0])){ - (GList *)((int *)iw[i].result)[0] = g_list_append((GList *)((int *)iw[i].result)[0], + ((int *)iw[i].result)[0] = g_list_append((GList *)((int *)iw[i].result)[0], g_strdup(buff)); } ((int *)iw[i].result2)[0] = j; diff --exclude='*~' -Naur gai-0.5.8.orig/gai/gai-pref.c gai-0.5.8/gai/gai-pref.c --- gai-0.5.8.orig/gai/gai-pref.c 2004-03-18 04:56:35.000000000 -0300 +++ gai-0.5.8/gai/gai-pref.c 2005-04-09 20:43:50.000000000 -0300 @@ -967,8 +967,8 @@ if((unsigned char*)(((int *)iw[i].result)[0]) != NULL && (unsigned char*)(((int *)iw[i].default_val)[0]) != NULL) - (unsigned char*)(((int *)iw[i].result)[0]) = - (unsigned char*)(((int *)iw[i].default_val)[0]) = g_strdup(buff); + (((int *)iw[i].result)[0]) = + (((int *)iw[i].default_val)[0]) = g_strdup(buff); //printf("%s\n",buff); @@ -988,7 +988,7 @@ if(j == g_list_length((GList *)((int *)iw[i].result)[0])){ - (GList *)((int *)iw[i].result)[0] = g_list_append((GList *)((int *)iw[i].result)[0], + ((int *)iw[i].result)[0] = g_list_append((GList *)((int *)iw[i].result)[0], g_strdup(buff)); // printf("%s is a new entry\n",buff); }