summaryrefslogtreecommitdiffstats
path: root/source/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-01-17 06:15:18 +0000
committerAndrew Tridgell <tridge@samba.org>2003-01-17 06:15:18 +0000
commite3d00fa47d38cd214f5e350e1d6b30d90ed8a52c (patch)
treebdc402664909f5d7aa8841d60c0d462f2bb2eeb4 /source/python
parentb9eff31b1433c81fbff733e194914a40f25e3bda (diff)
downloadsamba-e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c.tar.gz
samba-e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c.tar.xz
samba-e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c.zip
reverted this patch till I sort out the craziness with UNIHDR
Diffstat (limited to 'source/python')
-rw-r--r--source/python/py_spoolss_forms.c2
-rw-r--r--source/python/py_spoolss_forms_conv.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/python/py_spoolss_forms.c b/source/python/py_spoolss_forms.c
index b446ce3c967..ef9ed94533a 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);
+ init_unistr2(&form.name, form_name, strlen(form_name) + 1);
break;
}
default:
diff --git a/source/python/py_spoolss_forms_conv.c b/source/python/py_spoolss_forms_conv.c
index 40f7de8fdc9..095a318fd24 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);
+ init_unistr2(&form->name, name, strlen(name) + 1);
result = True;