Mercurial > hg > mlmmj
changeset 838:64552670ace9
Fix bug where conditionals with multiple arguments caused an infinite loop.
author | Ben Schmidt |
---|---|
date | Tue, 24 Jan 2012 13:13:32 +1100 |
parents | f51138584096 |
children | 605ce8682e9b |
files | src/prepstdreply.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;