[gtkhtml/gnome-3-6] Don't pass -1 for the string length to a function that takes guints...
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml/gnome-3-6] Don't pass -1 for the string length to a function that takes guints...
- Date: Thu, 15 Sep 2016 23:16:43 +0000 (UTC)
commit f48c9e9287c9330419aa90c742fdb24b396789e9
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Sep 12 11:54:27 2016 -0500
Don't pass -1 for the string length to a function that takes guints...
gtkhtml/gtkhtml.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index 8d8f820..64fa8ee 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -3339,7 +3339,7 @@ gtk_html_im_commit_cb (GtkIMContext *context,
pos = html->engine->mark->position;
D_IM (printf ("IM commit %s\n", str);)
- html_engine_paste_text (html->engine, str, -1);
+ html_engine_paste_text (html->engine, str, g_utf8_strlen (str, -1));
html->priv->im_block_reset = state;
D_IM (printf ("IM commit pos: %d pre_pos: %d\n", pos, html->priv->im_pre_pos);)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]