summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-14 01:48:59 +0000
committerTim Potter <tpot@samba.org>2002-03-14 01:48:59 +0000
commitd7efc5dd3dd712e7138b5c79eea9756125757175 (patch)
treec3c5a723284ec05ecb0ceb4a83321d6a43e5d321 /source/printing
parent8587dd95f850b4c6d2f015fe97ef98759ee8c236 (diff)
downloadsamba-d7efc5dd3dd712e7138b5c79eea9756125757175.tar.gz
samba-d7efc5dd3dd712e7138b5c79eea9756125757175.tar.xz
samba-d7efc5dd3dd712e7138b5c79eea9756125757175.zip
Backed out enumprinters stuff - leave it for another day.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index 7826212ae9b..43667a674d0 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -2607,7 +2607,9 @@ static WERROR get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstring sharen
/* Restore the stripped strings. */
slprintf(info.servername, sizeof(info.servername)-1, "\\\\%s",
get_called_name());
- strupper(info.servername);
+ slprintf(printername, sizeof(printername)-1, "\\\\%s\\%s", get_called_name(),
+ info.printername);
+ fstrcpy(info.printername, printername);
len += unpack_devicemode(&info.devmode,dbuf.dptr+len, dbuf.dsize-len);