diff --git a/libdakara_check.c b/libdakara_check.c index 4d49463..ac26513 100644 --- a/libdakara_check.c +++ b/libdakara_check.c @@ -294,7 +294,7 @@ void dakara_check_subtitle_events(ASS_Track *track, dakara_check_sub_results *re tags = false; break; case '\\': - if (line[read_head + 1] == 'p' && line[read_head] <= '9' && line[read_head] >= 0) { + if (line[read_head + 1] == 'p' && line[read_head+2] <= '9' && line[read_head+2] >= 0) { // \p0, disables \pn is valid and enables drawing mode drawing = line[read_head + 2] != '0'; }