summaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-03-13 11:49:33 +0000
committerNick Clifton <nickc@redhat.com>2003-03-13 11:49:33 +0000
commit6edf05a851e45a2fd9b1240ccac3881a64d624c0 (patch)
tree2f2d4468f01765743721428347b1cc49dfe4867a /gas/macro.c
parent682b28aad2164dd0cccee3a5a72edad1be8092b5 (diff)
downloadbinutils-redhat-6edf05a851e45a2fd9b1240ccac3881a64d624c0.tar.gz
(buffer_and_nest): Store more to sb instead of '\n'.
(get_line_sb): Return end of line character or '\n' if it is zero or non-existent.
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/macro.c b/gas/macro.c
index 77dc067e58..469ca801f3 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -222,8 +222,8 @@ buffer_and_nest (from, to, ptr, get_line)
}
}
- /* Add a CR to the end and keep running. */
- sb_add_char (ptr, '\n');
+ /* Add the original end-of-line char to the end and keep running. */
+ sb_add_char (ptr, more);
line_start = ptr->len;
more = get_line (ptr);
}