Mercurial > pidgin.yaz
comparison pidgin/gtkthemes.c @ 29318:ed93baed53c2
Look for non-null before processing theme input. Closes #10521 (again).
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 01 Feb 2010 21:50:17 +0000 |
parents | 8c8871afd063 |
children | 362d787f0b87 |
comparison
equal
deleted
inserted
replaced
29313:4931a24576bd | 29318:ed93baed53c2 |
---|---|
307 i = i + 2; | 307 i = i + 2; |
308 } | 308 } |
309 while (*i) { | 309 while (*i) { |
310 char l[64]; | 310 char l[64]; |
311 int li = 0; | 311 int li = 0; |
312 while (!isspace(*i) && li < sizeof(l) - 1) { | 312 while (*i && !isspace(*i) && li < sizeof(l) - 1) { |
313 if (*i == '\\' && *(i+1) != '\0') | 313 if (*i == '\\' && *(i+1) != '\0') |
314 i++; | 314 i++; |
315 l[li++] = *(i++); | 315 l[li++] = *(i++); |
316 } | 316 } |
317 l[li] = 0; | 317 l[li] = 0; |