aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--listamsb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/listamsb.c b/listamsb.c
index b49b74e..1c59659 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -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);