diff options
author | David Disseldorp <ddiss@samba.org> | 2011-11-23 02:03:48 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2012-01-23 21:30:01 +0100 |
commit | acb826038488fe8850fa227917868d9e03f4c00e (patch) | |
tree | 1f3f960aa0f6584e74309e78d68c106326d6ae5b | |
parent | f83cd0ae61ae4d5939c4e0904072f2860445294e (diff) | |
download | samba-acb826038488fe8850fa227917868d9e03f4c00e.tar.gz |
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>
(cherry picked from commit 90f3708135ef6573997417bd8e53191df78519c2)
-rw-r--r-- | librpc/idl/spoolss.idl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index 4b1f94f4a35..d888a79ecba 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; |