Skip to content

Instantly share code, notes, and snippets.

@eban
Created December 1, 2008 15:23
Show Gist options
  • Save eban/30746 to your computer and use it in GitHub Desktop.
Save eban/30746 to your computer and use it in GitHub Desktop.
scim-skkがSEGVするのを直すpatch
--- src/scim_skk_dictionary.cpp.orig 2005-12-18 22:02:39.000000000 +0900
+++ src/scim_skk_dictionary.cpp 2008-11-30 04:38:13.000000000 +0900
@@ -545,5 +545,7 @@
list<CandPair> &cl = m_dictdata[key];
- for (list<CandPair>::iterator it = cl.begin(); it != cl.end(); it++) {
+ for (list<CandPair>::iterator it = cl.begin(); it != cl.end();) {
if (it->first == data.first) {
- cl.erase(it);
+ it = cl.erase(it);
+ } else {
+ ++it;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment