summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-30 19:45:22 +0000
committerJeremy Allison <jra@samba.org>2000-10-30 19:45:22 +0000
commitdc0b638489fbcf256453d821449403d6d8395b41 (patch)
treea5281c6526de67073b87fb0a2b460bf494b301cc /source3/rpc_parse
parentff6f0c1a3bd50463228cb6bdcf0018cf6ab4270f (diff)
downloadsamba-dc0b638489fbcf256453d821449403d6d8395b41.tar.gz
samba-dc0b638489fbcf256453d821449403d6d8395b41.tar.bz2
samba-dc0b638489fbcf256453d821449403d6d8395b41.zip
Fixed double btyte-swap problems with bigendian architectures.
Jeremy. (This used to be commit c96a77957be49418b62e401db49235a11d711217)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_spoolss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index e331401301..ac10f37646 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -382,7 +382,8 @@ BOOL smb_io_notify_info_data_strings(char *desc,SPOOL_NOTIFY_INFO_DATA *data,
x=data->notify_data.data.length+1;
if(!prs_uint32("string length", ps, depth, &x ))
return False;
- if(!prs_uint16s(True,"string",ps,depth,data->notify_data.data.string,x))
+ /* These are already in little endian format. Don't byte swap. */
+ if(!prs_uint8s(True,"string",ps,depth,(uint8 *)data->notify_data.data.string,x*2))
return False;
}
if(!prs_align(ps))