Created
December 1, 2008 15:23
-
-
Save eban/30746 to your computer and use it in GitHub Desktop.
scim-skkがSEGVするのを直すpatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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