Mercurial > pidgin
comparison src/gtkimhtml.c @ 2871:10b808bee701
[gaim-migrate @ 2884]
don't include the nul character. that's bad.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 11 Dec 2001 06:29:58 +0000 |
parents | 5d7e0a730c7f |
children | f72efa29c109 |
comparison
equal
deleted
inserted
replaced
2870:50547c3729fa | 2871:10b808bee701 |
---|---|
2833 gint tlen; | 2833 gint tlen; |
2834 gint type; | 2834 gint type; |
2835 | 2835 |
2836 gchar amp; | 2836 gchar amp; |
2837 | 2837 |
2838 int smilelen; | 2838 gint smilelen; |
2839 | 2839 |
2840 GList *newbits = NULL; | 2840 GList *newbits = NULL; |
2841 | 2841 |
2842 guint bold = 0, | 2842 guint bold = 0, |
2843 italics = 0, | 2843 italics = 0, |
3142 } | 3142 } |
3143 c++; | 3143 c++; |
3144 pos++; | 3144 pos++; |
3145 } else if (gtk_imhtml_is_smiley (imhtml, c, &smilelen)) { | 3145 } else if (gtk_imhtml_is_smiley (imhtml, c, &smilelen)) { |
3146 NEW_BIT (NEW_TEXT_BIT); | 3146 NEW_BIT (NEW_TEXT_BIT); |
3147 g_snprintf (ws, smilelen + 1, "%s", c); | 3147 wpos = g_snprintf (ws, smilelen + 1, "%s", c); |
3148 wpos = smilelen + 1; | |
3149 NEW_BIT (NEW_SMILEY_BIT); | 3148 NEW_BIT (NEW_SMILEY_BIT); |
3150 c += smilelen; | 3149 c += smilelen; |
3151 pos += smilelen; | 3150 pos += smilelen; |
3152 } else if (*c) { | 3151 } else if (*c) { |
3153 ws [wpos++] = *c++; | 3152 ws [wpos++] = *c++; |