diff --git a/asm/preproc.c b/asm/preproc.c index c3353951..d966c10f 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -4234,7 +4234,7 @@ issue_error: } } - q = qbuf = nasm_malloc(len); + q = qbuf = nasm_malloc(len+1); list_for_each(t, tline) { if (t->type == TOK_INTERNAL_STRING) q = mempcpy(q, tok_text(t), t->len);