Skip to content

Commit

Permalink
fix: not correct string length in "Subtitle"
Browse files Browse the repository at this point in the history
  • Loading branch information
Masaiki committed Nov 21, 2021
1 parent 75ead98 commit b3757d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assrender.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void VS_CC assrender_create_vs(const VSMap* in, VSMap* out, void* userData, VSCo

free(text_copy);

ass = ass_read_memory(data->ass_library, str, siz, "UTF-8");
ass = ass_read_memory(data->ass_library, str, strlen(str), "UTF-8");

free(str);
#undef BUFFER_SIZE
Expand Down

0 comments on commit b3757d6

Please sign in to comment.