summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_unistr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 2c721aeb47..c0701f0427 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -258,13 +258,13 @@ void unistr2_to_ascii(char *dest, const UNISTR2 *str, size_t maxlen)
uint16 ucs2_val;
uint16 cp_val;
- c = *(src++);
+ c = *src;
if (c == 0)
{
break;
}
- ucs2_val = SVAL(src,0);
+ ucs2_val = SVAL(src++,0);
cp_val = ucs2_to_doscp[ucs2_val];
if (cp_val < 256)