diff options
Diffstat (limited to 'src/crunch.c')
| -rw-r--r-- | src/crunch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crunch.c b/src/crunch.c index 2bef18d..880f059 100644 --- a/src/crunch.c +++ b/src/crunch.c @@ -98,6 +98,9 @@ token_t *match_token(int pos) { t = &root_tokens[input_buf[pos]]; new_pos = pos + 1; + if(new_pos == input_len) + return t; + p = t; while((p = get_kid(t, input_buf[new_pos]))) { t = p; |
