for (i = 0; i < strlen(newradline) + 6; i++) newradline[i] = 0;
for (i = 0; i < (int) (strlen(newradline) + 6); i++) newradline[i] = 0;
int radical_selected(gunichar *radical) {  int i, j;  gchar radical_selected[6];  gchar tmpchar[6];  gchar *radline_ptr, *newradline;  int removed;  int radline_length = 0;  for (j = 0; j < 6; j++) radical_selected[j] = 0;   g_unichar_to_utf8(*radical, radical_selected);  radline_ptr = (gchar*) gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(kanjiDic->combo_entry_radical)->entry));  newradline = g_strndup(radline_ptr, strlen(radline_ptr) + 6); //Enough space for one more character  radline_length = g_utf8_strlen(newradline, -1);  for (i = 0; i < strlen(newradline) + 6; i++) newradline[i] = 0; //clear newradline  removed = FALSE;  for (i = 0; i < radline_length; i++) {  //Check if we already have the radical in the line    if (g_utf8_get_char(radline_ptr) != *radical) {      for (j = 0; j < 6; j++) tmpchar[j] = 0;       g_unichar_to_utf8(g_utf8_get_char(radline_ptr), tmpchar);      strcat(newradline, tmpchar);    }    else removed = TRUE;  //if it's there then remove it    radline_ptr = g_utf8_next_char(radline_ptr);  }    if (removed == FALSE) strcat(newradline, radical_selected); //Add the radical to the line  gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(kanjiDic->combo_entry_radical)->entry), newradline);  g_free(newradline);  on_kanji_search();    return 0;}