git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e87b9
)
r3707: 2028: avoid false error messages when copying a long printer name to the devic...
author
Gerald Carter
<jerry@samba.org>
Fri, 12 Nov 2004 17:23:01 +0000
(17:23 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:53:15 +0000
(10:53 -0500)
(This used to be commit
c9613214a5797adbb62a953bd5e28cf9fe2692ee
)
source3/printing/nt_printing.c
patch
|
blob
|
history
diff --git
a/source3/printing/nt_printing.c
b/source3/printing/nt_printing.c
index a69433df37f95b6c2430b10d25c58888fa46df24..dd87b519462bfc1f37e59d625dfb4ae1477d62cd 100644
(file)
--- a/
source3/printing/nt_printing.c
+++ b/
source3/printing/nt_printing.c
@@
-3428,7
+3428,7
@@
static WERROR get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, const char *se
info.devmode = construct_nt_devicemode(printername);
}
- s
afe_strcpy(adevice, info.printername, sizeof(adevice)-1
);
+ s
lprintf( adevice, sizeof(adevice), "%s", info.printername
);
if (info.devmode) {
fstrcpy(info.devmode->devicename, adevice);
}