Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/gtkimhtml.c Mon Mar 04 17:22:57 2002 +0000 +++ b/src/gtkimhtml.c Mon Mar 04 18:43:27 2002 +0000 @@ -2898,7 +2898,7 @@ *length = 5; } else if (*(string + 1) == '#') { guint pound = 0; - if (sscanf (string, "&#%u;", £) == 1) { + if ((sscanf (string, "&#%u;", £) == 1) && pound != 0) { if (*(string + 3 + (gint)log10 (pound)) != ';') return FALSE; *replace = (gchar)pound;