src/gtkimhtml.c

changeset 2871
031bcb27d30f
parent 2861
48bf8f2d0e15
child 2885
213e2a58cbf6
--- a/src/gtkimhtml.c	Mon Dec 10 20:10:03 2001 +0000
+++ b/src/gtkimhtml.c	Tue Dec 11 06:29:58 2001 +0000
@@ -2835,7 +2835,7 @@
 
 	gchar amp;
 
-	int smilelen;
+	gint smilelen;
 
 	GList *newbits = NULL;
 
@@ -3144,8 +3144,7 @@
 			pos++;
 		} else if (gtk_imhtml_is_smiley (imhtml, c, &smilelen)) {
 			NEW_BIT (NEW_TEXT_BIT);
-			g_snprintf (ws, smilelen + 1, "%s", c);
-			wpos = smilelen + 1;
+			wpos = g_snprintf (ws, smilelen + 1, "%s", c);
 			NEW_BIT (NEW_SMILEY_BIT);
 			c += smilelen;
 			pos += smilelen;

mercurial