aboutsummaryrefslogtreecommitdiffstats
path: root/src/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dd.c b/src/dd.c
index 04665f98f..c7fe5631e 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -575,7 +575,7 @@ Options are:\n\
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
- emit_bug_reporting_address ();
+ emit_ancillary_info ();
}
exit (status);
}
@@ -769,7 +769,7 @@ install_signal_handlers (void)
static void
process_signals (void)
{
- while (interrupt_signal | info_signal_count)
+ while (interrupt_signal || info_signal_count)
{
int interrupt;
int infos;
@@ -1785,10 +1785,11 @@ dd_copy (void)
output_char (space_character);
}
- if ((conversions_mask & C_UNBLOCK) && col == conversion_blocksize)
- /* Add a final '\n' if there are exactly `conversion_blocksize'
- characters in the final record. */
- output_char (newline_character);
+ if (col && (conversions_mask & C_UNBLOCK))
+ {
+ /* If there was any output, add a final '\n'. */
+ output_char (newline_character);
+ }
/* Write out the last block. */
if (oc != 0)