diff options
author | B. Watson <urchlay@slackware.uk> | 2025-02-27 04:21:13 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-02-27 04:21:13 -0500 |
commit | d5beb09c8a396fe906dd680cd7154c6c4e0d9909 (patch) | |
tree | 4379e0cfb3e015d6a74d878c2b489151f3176d64 /listamsb.c | |
parent | 88e7a18d1873592f8b084b0e2a516de8d2f3fdc0 (diff) | |
download | bw-atari8-tools-d5beb09c8a396fe906dd680cd7154c6c4e0d9909.tar.gz |
listamsb: print "" correctly (" embedded in a string).
Diffstat (limited to 'listamsb.c')
-rw-r--r-- | listamsb.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -317,7 +317,11 @@ int next_line(void) { continue; } } - if(printing) putc(byte, outfile); + if(printing) { + putc(byte, outfile); + /* one " character embedded in a string gets printed as "" */ + if(byte == '"') putc(byte, outfile); + } } else if(in_comment) { if(byte == 0x00) break; if(printing) putc(byte, outfile); |