diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-06-30 17:14:36 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-06-30 17:14:36 -0700 |
commit | a3db726f02be8ac285f51106070a04aca7ab0142 (patch) | |
tree | be35b568bba4a7b41008e391e6ab13bc3bd3ecf5 /asm/listing.c | |
parent | 367350319b8c5d2a79f400915d7a51be9cb98209 (diff) | |
parent | 8877a3ddb08e5cb7cd60704380ccccb5bb5c36b2 (diff) | |
download | nasm-a3db726f02be8ac285f51106070a04aca7ab0142.tar.gz |
Merge remote-tracking branch 'github/nasm-2.15.xx'
Resolved Conflicts:
version
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'asm/listing.c')
-rw-r--r-- | asm/listing.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/asm/listing.c b/asm/listing.c index 9b101ff4..6d6f3606 100644 --- a/asm/listing.c +++ b/asm/listing.c @@ -1,6 +1,6 @@ /* ----------------------------------------------------------------------- * * - * Copyright 1996-2019 The NASM Authors - All Rights Reserved + * Copyright 1996-2020 The NASM Authors - All Rights Reserved * See the file AUTHORS included with the NASM distribution for * the specific copyright holders. * @@ -276,8 +276,13 @@ static void list_output(const struct out_data *data) break; case OUT_RESERVE: { - if (size) + if (size > 8) { list_size(offset, "res", size); + } else { + memset(q, '?', size << 1); + q[size << 1] = '\0'; + list_out(offset, q); + } break; } default: |