Mercurial > pidgin
diff src/protocols/yahoo/util.c @ 10899:1e6bdc7175e9
[gaim-migrate @ 12619]
Bits'n'pieces:
Don't allow gaim-remote "clones" to knock gaim out by specifying a big packet
length.
Correctly bound the point sizes in gtkimhtml & yahoo
Fix up some code in MSN that isn't actually being used, just in case someone
comes along and submits a patch that would use it.
Don't try writing to the server in MSN if you're not actually connected
Fix message flags in SILC
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 05 May 2005 13:09:28 +0000 |
parents | 1a97d5e88d12 |
children | f4e58e94ced3 |
line wrap: on
line diff
--- a/src/protocols/yahoo/util.c Tue May 03 04:40:53 2005 +0000 +++ b/src/protocols/yahoo/util.c Thu May 05 13:09:28 2005 +0000 @@ -349,7 +349,7 @@ /* borrowed from gtkimhtml */ #define MAX_FONT_SIZE 7 -#define POINT_SIZE(x) (_point_sizes [MIN ((x), MAX_FONT_SIZE) - 1]) +#define POINT_SIZE(x) (_point_sizes [MIN ((x > 0 ? x : 1), MAX_FONT_SIZE) - 1]) static gint _point_sizes [] = { 8, 10, 12, 14, 20, 30, 40 }; enum fatype { size, color, face, junk };