From dc0b638489fbcf256453d821449403d6d8395b41 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 30 Oct 2000 19:45:22 +0000 Subject: Fixed double btyte-swap problems with bigendian architectures. Jeremy. (This used to be commit c96a77957be49418b62e401db49235a11d711217) --- source3/rpc_parse/parse_spoolss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/rpc_parse') 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)) -- cgit