# HG changeset patch # User Eric Warmenhoven # Date 1008052198 0 # Node ID 10b808bee701741a223ce98123b9215e95a0d10e # Parent 50547c3729fa502dac13807ef43c212d504fd1ab [gaim-migrate @ 2884] don't include the nul character. that's bad. committer: Tailor Script diff -r 50547c3729fa -r 10b808bee701 src/gtkimhtml.c --- 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;