pidgin: 89ddd80c: Look for non-null before processing them...
sadrul at pidgin.im
sadrul at pidgin.im
Mon Feb 1 16:50:28 EST 2010
-----------------------------------------------------------------
Revision: 89ddd80c4cd11b79fbcb649bba819ecce526312c
Ancestor: 47bd1e8215f2e068f00151ed40c211745f596aba
Author: sadrul at pidgin.im
Date: 2010-02-01T21:50:17
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/89ddd80c4cd11b79fbcb649bba819ecce526312c
Modified files:
pidgin/gtkthemes.c
ChangeLog:
Look for non-null before processing theme input. Closes #10521 (again).
-------------- next part --------------
============================================================
--- pidgin/gtkthemes.c cc57f531ac671e167cccae0beab863ff07a02bd4
+++ pidgin/gtkthemes.c ffa9442384081a7ef5f81ebbbb6898c64ce44c46
@@ -309,7 +309,7 @@ void pidgin_themes_load_smiley_theme(con
while (*i) {
char l[64];
int li = 0;
- while (!isspace(*i) && li < sizeof(l) - 1) {
+ while (*i && !isspace(*i) && li < sizeof(l) - 1) {
if (*i == '\\' && *(i+1) != '\0')
i++;
l[li++] = *(i++);
More information about the Commits
mailing list