[evolution/wip/webkit-composer: 964/966] ESpellChecker: Pass number of bytes instead of characters into e_spell_checker_check_word



commit b6735b41b1f85d3811fbe02e360aa8cf3d9b4dbd
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Apr 4 13:19:48 2014 +0200

    ESpellChecker: Pass number of bytes instead of characters into e_spell_checker_check_word

 e-util/e-spell-checker.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-spell-checker.c b/e-util/e-spell-checker.c
index 997f1b3..c781672 100644
--- a/e-util/e-spell-checker.c
+++ b/e-util/e-spell-checker.c
@@ -27,6 +27,7 @@
 #include <webkit/webkitspellchecker.h>
 #include <pango/pango.h>
 #include <gtk/gtk.h>
+#include <string.h>
 
 #define E_SPELL_CHECKER_GET_PRIVATE(obj) \
        (G_TYPE_INSTANCE_GET_PRIVATE \
@@ -138,7 +139,7 @@ wksc_check_spelling (WebKitSpellChecker *webkit_checker,
                        g_utf8_strncpy (new_word, cstart, word_length);
 
                        word_recognized = e_spell_checker_check_word (
-                               checker, new_word, word_length);
+                               checker, new_word, strlen (new_word));
 
                        if (word_recognized) {
                                if (misspelling_location != NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]