# HG changeset patch # User Ben Schmidt # Date 1327371212 -39600 # Node ID 64552670ace9d20246cd3d35f704f4c68f297589 # Parent f511385840967ce0f1fe5fa83f481faa594138c1 Fix bug where conditionals with multiple arguments caused an infinite loop. diff -r f51138584096 -r 64552670ace9 src/prepstdreply.c --- a/src/prepstdreply.c Mon Jan 23 19:55:04 2012 +1100 +++ b/src/prepstdreply.c Tue Jan 24 13:13:32 2012 +1100 @@ -669,10 +669,10 @@ conditional *cond; if (txt->skip == NULL) { + pos = token; for (;;) { if (*token == '\0') break; - for (pos = token; - *pos != '\0' && (!multi || *pos != ' '); + for (; *pos != '\0' && (!multi || *pos != ' '); pos++) { if(*pos >= '0' && *pos <= '9') continue; if(*pos >= 'A' && *pos <= 'Z') continue;