gtkimhtml: fix gtk_imhtml_is_tag to allow the tag to be retrieved without the length release-2.x.y

Tue, 26 Feb 2013 22:18:28 -0500

author
Daniel Atallah <datallah@pidgin.im>
date
Tue, 26 Feb 2013 22:18:28 -0500
branch
release-2.x.y
changeset 33800
23927269a23a
parent 33798
ab26d8e3da97
child 33801
6dbfcd72998e

gtkimhtml: fix gtk_imhtml_is_tag to allow the tag to be retrieved without the length

pidgin/gtkimhtml.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkimhtml.c	Tue Feb 26 21:20:25 2013 -0500
+++ b/pidgin/gtkimhtml.c	Tue Feb 26 22:18:28 2013 -0500
@@ -2367,7 +2367,7 @@
 	if (len)
 		*len = close - string + 1;
 	if (tag)
-		*tag = g_strndup(string, *len - 1);
+		*tag = g_strndup(string, close - string);
 	return TRUE;
 }
 

mercurial