changeset 4629:86fd0f6eaa1a

[gaim-migrate @ 4920] This doesn't do anything mysterious. I met this cat one that didn't do anything mysterious. Some people thought it was dead, but one time I saw it walk around. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 01 Mar 2003 02:30:24 +0000
parents ebae85185165
children 5cdfd20daa07
files src/gtkimhtml.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Fri Feb 28 23:11:04 2003 +0000
+++ b/src/gtkimhtml.c	Sat Mar 01 02:30:24 2003 +0000
@@ -28,6 +28,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <math.h>
 #ifdef HAVE_LANGINFO_CODESET
 #include <langinfo.h>
@@ -963,6 +964,10 @@
 							font->face = face;
 						else if (oldfont && oldfont->face)
 							font->face = g_strdup(oldfont->face);
+						if (font->face && (atoi(font->face) > 100)) {
+							g_free(font->face);
+							font->face = g_strdup("100");
+						}
 
 						if (sml)
 							font->sml = sml;