mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
...
This commit is contained in:
parent
b78264183f
commit
73bc6e4bfc
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ bganchor(PyObject *anchor_name) {
|
|||
if (src == Py_None || !PyUnicode_Check(src)) return; \
|
||||
Py_ssize_t sz; \
|
||||
const char *s = PyUnicode_AsUTF8AndSize(src, &sz); \
|
||||
opts->name = calloc(sz + 1, 1); \
|
||||
opts->name = calloc(sz + 1, sizeof(s[0])); \
|
||||
if (opts->name) memcpy(opts->name, s, sz); \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue