comparison src/gtkimhtml.c @ 3004:bfd2b1ef907c

[gaim-migrate @ 3017] Don't fork for console beeps anymore. Fixed a bug reported by Mike Owens. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 04 Mar 2002 18:43:27 +0000
parents 6d95285533df
children 206bf0e4d560
comparison
equal deleted inserted replaced
3003:2a1bae4efb92 3004:bfd2b1ef907c
2896 } else if (!g_strncasecmp (string, "&reg;", 5)) { 2896 } else if (!g_strncasecmp (string, "&reg;", 5)) {
2897 *replace = '®'; 2897 *replace = '®';
2898 *length = 5; 2898 *length = 5;
2899 } else if (*(string + 1) == '#') { 2899 } else if (*(string + 1) == '#') {
2900 guint pound = 0; 2900 guint pound = 0;
2901 if (sscanf (string, "&#%u;", &pound) == 1) { 2901 if ((sscanf (string, "&#%u;", &pound) == 1) && pound != 0) {
2902 if (*(string + 3 + (gint)log10 (pound)) != ';') 2902 if (*(string + 3 + (gint)log10 (pound)) != ';')
2903 return FALSE; 2903 return FALSE;
2904 *replace = (gchar)pound; 2904 *replace = (gchar)pound;
2905 *length = 2; 2905 *length = 2;
2906 while (isdigit ((gint) string [*length])) (*length)++; 2906 while (isdigit ((gint) string [*length])) (*length)++;