diff options
Diffstat (limited to 'source/python')
-rw-r--r-- | source/python/py_spoolss_forms.c | 2 | ||||
-rw-r--r-- | source/python/py_spoolss_forms_conv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/python/py_spoolss_forms.c b/source/python/py_spoolss_forms.c index ef9ed94533a..b446ce3c967 100644 --- a/source/python/py_spoolss_forms.c +++ b/source/python/py_spoolss_forms.c @@ -59,7 +59,7 @@ PyObject *spoolss_hnd_addform(PyObject *self, PyObject *args, PyObject *kw) PyObject *obj = PyDict_GetItemString(info, "name"); char *form_name = PyString_AsString(obj); - init_unistr2(&form.name, form_name, strlen(form_name) + 1); + init_unistr2(&form.name, form_name); break; } default: diff --git a/source/python/py_spoolss_forms_conv.c b/source/python/py_spoolss_forms_conv.c index 095a318fd24..40f7de8fdc9 100644 --- a/source/python/py_spoolss_forms_conv.c +++ b/source/python/py_spoolss_forms_conv.c @@ -81,7 +81,7 @@ BOOL py_to_FORM(FORM *form, PyObject *dict) obj = PyDict_GetItemString(dict, "name"); name = PyString_AsString(obj); - init_unistr2(&form->name, name, strlen(name) + 1); + init_unistr2(&form->name, name); result = True; |