--- a/src/gtkthemes.c Mon Feb 06 07:34:55 2006 +0000 +++ b/src/gtkthemes.c Mon Feb 06 07:46:35 2006 +0000 @@ -172,8 +172,8 @@ while (*i) { char l[64]; int li = 0; - while (!isspace(*i)) { - if (*i == '\\' && *(i+1) != '\0' ) + while (!isspace(*i) && li < sizeof(l) - 1) { + if (*i == '\\' && *(i+1) != '\0' && *(i+1) != '\n' && *(i+1) != '\r') i++; l[li++] = *(i++); }