From: <sa...@us...> - 2006-08-23 10:48:30
|
Revision: 16999 Author: sadrul Date: 2006-08-23 03:48:21 -0700 (Wed, 23 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16999&view=rev Log Message: ----------- guard against possible crashes. Modified Paths: -------------- trunk/console/libgnt/gntentry.c Modified: trunk/console/libgnt/gntentry.c =================================================================== --- trunk/console/libgnt/gntentry.c 2006-08-23 08:02:05 UTC (rev 16998) +++ trunk/console/libgnt/gntentry.c 2006-08-23 10:48:21 UTC (rev 16999) @@ -19,7 +19,7 @@ get_onscreen_width(const char *start, const char *end) { wchar_t wch; - size_t size; + int size; int width = 0; while (start < end) { @@ -351,7 +351,7 @@ { char *s = get_beginning_of_word(entry); char *iter = text; - while (toupper(*s) == toupper(*iter)) + while (*iter && toupper(*s) == toupper(*iter)) { *s++ = *iter++; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |