summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--token.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/token.c b/token.c
index 383c764..65a98cf 100644
--- a/token.c
+++ b/token.c
@@ -218,10 +218,10 @@ run: ch = NXTCH();
case '\"': /* strings */
str: PUTCH(ch);
- while ((ch = NXTCH()) != '\"') {
+ while ((ch = inch()) != '\"') {
PUTCH(ch);
if (ch == '\\') {
- ch = NXTCH();
+ ch = inch();
PUTCH(ch);
}
if (ch < 0)
@@ -604,7 +604,6 @@ again: switch (c = inpch()) {
case '\\': /* continued lines */
msdos: if ((c = inpch()) == '\n') {
ifiles->lineno++;
- putch('\n');
goto again;
} else if (c == '\r')
goto msdos;