Merge pull request #1572 from craftwar/utf8-fix

libobs: Fix utf-8 bom is not properly skipped
This commit is contained in:
Jim 2019-01-04 14:55:57 -08:00 committed by GitHub
commit 1e6bfa2eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out,
if (has_utf8_bom(in)) {
if (i_insize >= 3) {
in += 3;
insize -= 3;
i_insize -= 3;
}
}