diff options
-rw-r--r-- | source3/python/py_spoolss_printers.c | 2 | ||||
-rw-r--r-- | source3/python/py_srvsvc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/python/py_spoolss_printers.c b/source3/python/py_spoolss_printers.c index a8efda1601..7446e2d282 100644 --- a/source3/python/py_spoolss_printers.c +++ b/source3/python/py_spoolss_printers.c @@ -43,7 +43,7 @@ PyObject *spoolss_openprinter(PyObject *self, PyObject *args, PyObject *kw) return NULL; } - server = SMB_XSTRDUP(unc_name + 2); + server = SMB_STRDUP(unc_name + 2); if (strchr(server, '\\')) { char *c = strchr(server, '\\'); diff --git a/source3/python/py_srvsvc.c b/source3/python/py_srvsvc.c index 1fa7ca89c2..823dbb334a 100644 --- a/source3/python/py_srvsvc.c +++ b/source3/python/py_srvsvc.c @@ -93,7 +93,7 @@ PyObject *srvsvc_netservergetinfo(PyObject *self, PyObject *args, return NULL; } - server = SMB_XSTRDUP(unc_name + 2); + server = SMB_STRDUP(unc_name + 2); if (strchr(server, '\\')) { char *c = strchr(server, '\\'); |