From 2f544a807714024c0fe2ddc26e11c9ddcb47e81f Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Mon, 7 Feb 2000 18:06:54 +0000 Subject: 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() --- source/lib/util_unistr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/lib/util_unistr.c') diff --git a/source/lib/util_unistr.c b/source/lib/util_unistr.c index 2c721aeb473..c0701f0427a 100644 --- a/source/lib/util_unistr.c +++ b/source/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) -- cgit