summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2009-11-04 18:21:58 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2009-11-04 18:21:58 +0000
commit11c1264de9e8a635a8e6e45689814eda158223fb (patch)
treeb002b7634a34bf9896635404f13ffb870a83874e
parent10b13071c72cef8c14724dc2a191ef0aa57f840b (diff)
downloadenchant-11c1264de9e8a635a8e6e45689814eda158223fb.tar.gz
possibly fix https://bugs.launchpad.net/ubuntu/+source/enchant/+bug/474062
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28456 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/ispell/ispell_checker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ispell/ispell_checker.cpp b/src/ispell/ispell_checker.cpp
index e890483..2e5ef9e 100644
--- a/src/ispell/ispell_checker.cpp
+++ b/src/ispell/ispell_checker.cpp
@@ -465,11 +465,11 @@ ISpellChecker::setDictionaryEncoding( const char * hashname, const char * encodi
if (prefstringchar < 0)
{
- std::string teststring;
+ char teststring[64];
for(int n1 = 1; n1 <= 15; n1++)
{
- teststring = "latin" + n1;
- prefstringchar = findfiletype(teststring.c_str(), 1,
+ sprintf(teststring, "latin%d", n1);
+ prefstringchar = findfiletype(teststring, 1,
deftflag < 0 ? &deftflag : static_cast<int *>(NULL));
if (prefstringchar >= 0)
break;