0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

libcaption: Fix invalid data at utf8_load_text_file

This commit is contained in:
Chensiyy 2022-12-02 16:14:45 +08:00 committed by Jim
parent 862ed14fd9
commit c97b5cf7ee

View File

@ -220,7 +220,10 @@ utf8_char_t* utf8_load_text_file(const char* path, size_t* size)
}
}
if (data) {
data[*size] = 0;
}
return data;
}