mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
libcaption: Fix invalid data at utf8_load_text_file
This commit is contained in:
parent
862ed14fd9
commit
c97b5cf7ee
5
deps/libcaption/src/utf8.c
vendored
5
deps/libcaption/src/utf8.c
vendored
@ -220,7 +220,10 @@ utf8_char_t* utf8_load_text_file(const char* path, size_t* size)
|
||||
}
|
||||
}
|
||||
|
||||
data[*size] = 0;
|
||||
if (data) {
|
||||
data[*size] = 0;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user