summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm')
-rw-r--r--asm/preproc.c2
1 files changed, 1 insertions, 1 deletions
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);