[nautilus] eel-editable-label: Fix string length on retrieve-surrounding handler



commit 670875d76ed212e0bb9d071ef79b56fa6dacae2a
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Mar 25 15:29:37 2013 +0100

    eel-editable-label: Fix string length on retrieve-surrounding handler
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696532

 eel/eel-editable-label.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 17f7e1b..243b655 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -2390,7 +2390,7 @@ eel_editable_label_retrieve_surrounding_cb (GtkIMContext *context,
 {
   gtk_im_context_set_surrounding (context,
                                  label->text,
-                                 strlen (label->text) + 1,
+                                 strlen (label->text),
                                  label->selection_end);
 
   return TRUE;


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