This a quick, but effective fix. The client dies with SIGSEGV upon
entering Client->Configure dialog because it does strcasecmp() on a NULL
pointer. I think the client, when first installed and unconfigured, has
no want_faceset chosen.
Anyway, the bugfix is attached and works like a charm. I hope I didn't
miss something. Sorry if it's already in CVS, I didn't have much time to
look through already reported/fixed bugs.
diff -ru crossfire-client-1.9.1/gtk-v2/src/config.c crossfire-client-1.9.1-new/gtk-v2/src/config.c
--- crossfire-client-1.9.1/gtk-v2/src/config.c 2006-05-15 08:57:43.000000000 +0300
+++ crossfire-client-1.9.1-new/gtk-v2/src/config.c 2006-09-11 02:55:10.000000000 +0300
@@ -359,7 +359,7 @@
}
gtk_tree_model_get(model, &iter, 0, &buf, -1);
- if (!strcasecmp(face_info.want_faceset, buf)) {
+ if (face_info.want_faceset && !strcasecmp(face_info.want_faceset, buf)) {
gtk_combo_box_set_active(GTK_COMBO_BOX(config_combobox_faceset), i);
g_free(buf);
break;
_______________________________________________
crossfire mailing list
[email protected]
http://mailman.metalforge.org/mailman/listinfo/crossfire