From 4aba1d69b5f37ad5706dfea0bd4d80ac211112e5 Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 28 Jan 2010 20:52:08 +0000 Subject: [PATCH] DEC ucode cc politely reminds me this is not a good way of doing stuff, 10x --- lex.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lex.c b/lex.c index 65f14e9..c0ae11a 100644 --- a/lex.c +++ b/lex.c @@ -22,7 +22,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.104 2010/01/25 16:12:56 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.105 2010/01/28 20:52:08 tg Exp $"); /* * states while lexing word @@ -542,9 +542,10 @@ yylex(int cf) else { c = utf_wctomb(ts, c2 - 0x100); ts[c] = 0; - for (c = 0; ts[c]; ++c) - *wp++ = QCHAR, \ + for (c = 0; ts[c]; ++c) { + *wp++ = QCHAR; *wp++ = ts[c]; + } } } } else if (!statep->ls_sequote.got_NUL)