diff options
Diffstat (limited to 'output/outelf64.c')
-rw-r--r-- | output/outelf64.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/output/outelf64.c b/output/outelf64.c index b7caa16..4e2988a 100644 --- a/output/outelf64.c +++ b/output/outelf64.c @@ -1232,8 +1232,7 @@ static void elf_write(void) * Do the comment. */ *comment = '\0'; - commlen = - 2 + sprintf(comment + 1, "The Netwide Assembler %s", NASM_VER); + commlen = 2 + snprintf(comment+1, sizeof comment-1, "%s", nasm_comment); /* * Output the ELF header. @@ -2063,7 +2062,6 @@ void dwarf64_output(int type, void *param) void dwarf64_generate(void) { - static const char nasm_signature[] = "NASM " NASM_VER; uint8_t *pbuf; int indx; struct linelist *ftentry; |