summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-15 15:57:40 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-16 00:26:41 +0100
commita01de42a3636c9bb98fd64de8b4035023223b58b (patch)
treed94d75f1b33bf9c6509812dea109160f3b760db6 /source4/heimdal/lib
parent1312e9027945898a7352e22cfaf127e7ffc8327a (diff)
downloadsamba-a01de42a3636c9bb98fd64de8b4035023223b58b.tar.gz
samba-a01de42a3636c9bb98fd64de8b4035023223b58b.tar.bz2
samba-a01de42a3636c9bb98fd64de8b4035023223b58b.zip
HEIMDAL:lib/winbd: fix wind_ucs2write with WIND_RW_LE
Pair-Programmed-With: Arvid Requate <requate@univention.de> metze
Diffstat (limited to 'source4/heimdal/lib')
-rw-r--r--source4/heimdal/lib/wind/utf8.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/heimdal/lib/wind/utf8.c b/source4/heimdal/lib/wind/utf8.c
index fce6defd82..e1a1eb7b2b 100644
--- a/source4/heimdal/lib/wind/utf8.c
+++ b/source4/heimdal/lib/wind/utf8.c
@@ -346,8 +346,8 @@ wind_ucs2write(const uint16_t *in, size_t in_len, unsigned int *flags,
return WIND_ERR_OVERRUN;
if ((*flags) & WIND_RW_LE) {
- p[0] = (bom >> 8) & 0xff;
- p[1] = (bom ) & 0xff;
+ p[0] = (bom ) & 0xff;
+ p[1] = (bom >> 8) & 0xff;
} else {
p[1] = (bom ) & 0xff;
p[0] = (bom >> 8) & 0xff;
@@ -360,8 +360,8 @@ wind_ucs2write(const uint16_t *in, size_t in_len, unsigned int *flags,
if (len < 2)
return WIND_ERR_OVERRUN;
if ((*flags) & WIND_RW_LE) {
- p[0] = (in[0] >> 8) & 0xff;
- p[1] = (in[0] ) & 0xff;
+ p[0] = (in[0] ) & 0xff;
+ p[1] = (in[0] >> 8) & 0xff;
} else {
p[1] = (in[0] ) & 0xff;
p[0] = (in[0] >> 8) & 0xff;