ignored_problems: small optimization

We replace strlen(s) == sz by check whether s[sz] is NUL.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>