diff options
Diffstat (limited to 'source3/python/py_spoolss_forms_conv.c')
-rw-r--r-- | source3/python/py_spoolss_forms_conv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/python/py_spoolss_forms_conv.c b/source3/python/py_spoolss_forms_conv.c index 40f7de8fdc..095a318fd2 100644 --- a/source3/python/py_spoolss_forms_conv.c +++ b/source3/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); + init_unistr2(&form->name, name, strlen(name) + 1); result = True; |