mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-27 17:22:34 -04:00
Merge branch 'py3-matcher' of https://github.com/flaviut/calibre
This commit is contained in:
@@ -158,7 +158,7 @@ static UChar* python_to_icu(PyObject *obj, int32_t *osz) {
|
||||
ans[i] = data[i];
|
||||
}
|
||||
} else {
|
||||
memcpy(ans, data, sz);
|
||||
memcpy(ans, data, sz * sizeof(UChar));
|
||||
}
|
||||
// add null terminator
|
||||
ans[sz] = 0;
|
||||
|
||||
Reference in New Issue
Block a user