Fixed double btyte-swap problems with bigendian architectures.
authorJeremy Allison <jra@samba.org>
Mon, 30 Oct 2000 19:45:22 +0000 (19:45 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 30 Oct 2000 19:45:22 +0000 (19:45 +0000)
Jeremy.
(This used to be commit c96a77957be49418b62e401db49235a11d711217)

source3/rpc_parse/parse_spoolss.c

index e331401301b68d7dc0b869de3faa9a98cf9c3ac8..ac10f37646dda16de493fa2fb660a979b2e7ea38 100644 (file)
@@ -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))