token enumerator missed the last token if it contains only a single char

This commit is contained in:
Martin Willi
2008-11-27 09:21:52 +00:00
parent d2de674b9a
commit 9413628b87
2 changed files with 46 additions and 6 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ static bool enumerate_token_enum(token_enum_t *this, char **token)
}
}
if (!last || pos > *token)
if (!last || pos >= *token)
{
return TRUE;
}