diff options
author | Jeremy Allison <jra@samba.org> | 2006-01-31 18:34:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-01-31 18:34:51 +0000 |
commit | eac11281f26fa24ecef0774074dcbf25c3089ffa (patch) | |
tree | 6a4e59e00e786763b9e62f7e6bb6135bad7dc0f6 | |
parent | 7978c451bd0f41bc5f342c0508ebd5a3150b69b7 (diff) | |
download | samba-eac11281f26fa24ecef0774074dcbf25c3089ffa.tar.gz samba-eac11281f26fa24ecef0774074dcbf25c3089ffa.tar.xz samba-eac11281f26fa24ecef0774074dcbf25c3089ffa.zip |
r13260: Fix stupid bug Volker found for big-endian machines.
Jeremy.
-rw-r--r-- | source/include/smb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index fba02565d8f..315eb3233a8 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -173,7 +173,7 @@ typedef smb_ucs2_t wfstring[FSTRING_LEN]; #define UCS2_CHAR(c) ((c) << UCS2_SHIFT) /* return an ascii version of a ucs2 character */ -#define UCS2_TO_CHAR(c) ((c) & 0xff) +#define UCS2_TO_CHAR(c) (((c) >> UCS2_SHIFT) & 0xff) /* Copy into a smb_ucs2_t from a possibly unaligned buffer. Return the copied smb_ucs2_t */ #define COPY_UCS2_CHAR(dest,src) (((unsigned char *)(dest))[0] = ((unsigned char *)(src))[0],\ |