git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df774be
)
s3: Fix the charset_pull routine
author
Volker Lendecke
<vl@samba.org>
Mon, 6 Sep 2010 13:13:48 +0000
(15:13 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 27 Sep 2010 19:29:04 +0000
(21:29 +0200)
In the push routine we do the SVAL, so we should do the SSVAL here.
Fix bug #7531 (3.5.3 unusable on solaris 10).
(cherry picked from commit
73a7100a21a50873d09cef7a100ed75c4095863f
)
lib/util/charset/charset.h
patch
|
blob
|
history
diff --git
a/lib/util/charset/charset.h
b/lib/util/charset/charset.h
index 2c8aa41ad5c78287c4ce627b4664dfaacfbef0b9..c9425ef7301dea791e64b97f0e74939d380da9d0 100644
(file)
--- a/
lib/util/charset/charset.h
+++ b/
lib/util/charset/charset.h
@@
-242,7
+242,7
@@
static size_t CHARSETNAME ## _pull(void *cd, const char **inbuf, size_t *inbytes
char **outbuf, size_t *outbytesleft) \
{ \
while (*inbytesleft >= 1 && *outbytesleft >= 2) { \
-
*(uint16*)(*outbuf) = to_ucs2[((unsigned char*)(*inbuf))[0]];
\
+
SSVAL(*outbuf, 0, to_ucs2[((unsigned char*)(*inbuf))[0]]);
\
(*inbytesleft) -= 1; \
(*outbytesleft) -= 2; \
(*inbuf) += 1; \