summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2011-11-23 02:03:48 +0100
committerJeremy Allison <jra@samba.org>2012-01-13 09:37:37 -0800
commit94f925c815586221da10dcc5fcbadf9fb04a98f4 (patch)
treea7c49a60963fcb0432996388aaeeaa3dee0f1f32 /librpc
parent0df5d0608e8aaa7dce2866d0c2cc4c27c677d98d (diff)
downloadsamba-94f925c815586221da10dcc5fcbadf9fb04a98f4.tar.gz
samba-94f925c815586221da10dcc5fcbadf9fb04a98f4.tar.bz2
samba-94f925c815586221da10dcc5fcbadf9fb04a98f4.zip
idl: add to_null attribute to the spoolss devicename array
OpenPrinterEx requests have also been observed in the wild carrying non-utf16 garbage after the device mode devicename field null terminator. Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/spoolss.idl2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl
index 4b1f94f4a3..d888a79ecb 100644
--- a/librpc/idl/spoolss.idl
+++ b/librpc/idl/spoolss.idl
@@ -678,7 +678,7 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor")
const int MAXDEVICENAME = 32;
typedef [public,gensize] struct {
- [charset(UTF16)] uint16 devicename[MAXDEVICENAME];
+ [charset(UTF16),to_null] uint16 devicename[MAXDEVICENAME];
spoolss_DeviceModeSpecVersion specversion;
uint16 driverversion;
uint16 size;