# HG changeset patch # User Richard Nelson # Date 1176197572 0 # Node ID ca463cecd432eec2708bd77001bc699c83c5d900 # Parent ef727f4b9aacbf74c30842ff894992e43c4337a8 Only ascii keys can be bound, fixes a crash when inputting non-ascii chars diff -r ef727f4b9aac -r ca463cecd432 finch/libgnt/gntkeys.c --- a/finch/libgnt/gntkeys.c Tue Apr 10 07:25:26 2007 +0000 +++ b/finch/libgnt/gntkeys.c Tue Apr 10 09:32:52 2007 +0000 @@ -230,7 +230,9 @@ root.flags &= ~IS_END; while (*path && n->next[*path] && !(n->flags & IS_END)) { - if (g_utf8_find_next_char(path, NULL) - path > 1) + if (!g_ascii_isspace(*path) && + !g_ascii_iscntrl(*path) && + !g_ascii_isgraph(*path)) return 0; n = n->next[*path++]; depth++;