svn commit: samba r13259 - in trunk/source/include: .
jra at samba.org
jra at samba.org
Tue Jan 31 17:36:12 GMT 2006
Author: jra
Date: 2006-01-31 17:36:12 +0000 (Tue, 31 Jan 2006)
New Revision: 13259
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13259
Log:
Fix stupid bug Volker found for big-endian machines.
Jeremy.
Modified:
trunk/source/include/smb.h
Changeset:
Modified: trunk/source/include/smb.h
===================================================================
--- trunk/source/include/smb.h 2006-01-31 11:16:43 UTC (rev 13258)
+++ trunk/source/include/smb.h 2006-01-31 17:36:12 UTC (rev 13259)
@@ -173,7 +173,7 @@
#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],\
More information about the samba-cvs
mailing list