Skip to content

Commit

Permalink
check for \p number at the right index
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Aug 12, 2024
1 parent a3cdad8 commit 1ae8a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdakara_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 1ae8a5e

Please sign in to comment.