aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/lex.c')
-rw-r--r--c/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/lex.c b/c/lex.c
index 8c6e06b..264a0e1 100644
--- a/c/lex.c
+++ b/c/lex.c
@@ -2021,11 +2021,11 @@ addpredefmacros(struct arena **tmparena)
if (ppcmdline.n) {
struct memfile *f;
struct lexer lx[1] = {0};
- vpushn(&ppcmdline, "\0\0\0\0", 5);
lx->fileid = getpredeffile(&f, "<command line>");
assert(!f->p);
- lx->dat = f->p = ppcmdline.p;
lx->ndat = f->n = ppcmdline.n;
+ vpushn(&ppcmdline, "\0\0\0\0\0\0", 6);
+ lx->dat = f->p = ppcmdline.p;
lx->tmparena = tmparena;
lx->chrbuf0 = arraylength(lx->chrbuf);
lx->firstdirective = 1;