summaryrefslogtreecommitdiff
path: root/source3/lib/util_unistr.c
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-02-07 18:06:54 +0000
committerJean-François Micouleau <jfm@samba.org>2000-02-07 18:06:54 +0000
commit07fd3b392d8b3dc5bc8c72584e31a7369b92ff13 (patch)
treeebf4c068caf4f0cd7a90d2d080bd480f13970725 /source3/lib/util_unistr.c
parentcedf91b1f6e27cb02cc82d86de387c19be21340c (diff)
downloadsamba-07fd3b392d8b3dc5bc8c72584e31a7369b92ff13.tar.gz
samba-07fd3b392d8b3dc5bc8c72584e31a7369b92ff13.tar.bz2
samba-07fd3b392d8b3dc5bc8c72584e31a7369b92ff13.zip
Hum, I should remove my gloves when I'm in front of an xterm :)
fixed a stupid bug in unistr2_to_ascii that I introduced fixed getprinterdata() (This used to be commit 2f544a807714024c0fe2ddc26e11c9ddcb47e81f)
Diffstat (limited to 'source3/lib/util_unistr.c')
-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)