summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dd.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/dd.c b/src/dd.c
index 2c545c220..9d24791aa 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1807,12 +1807,14 @@ dd_copy (void)
memset (obuf, 0, output_blocksize);
do
- if (iwrite (STDOUT_FILENO, obuf, output_blocksize)
- != output_blocksize)
- {
- error (0, errno, _("writing to %s"), quote (output_file));
- quit (EXIT_FAILURE);
- }
+ {
+ if (iwrite (STDOUT_FILENO, obuf, output_blocksize)
+ != output_blocksize)
+ {
+ error (0, errno, _("writing to %s"), quote (output_file));
+ quit (EXIT_FAILURE);
+ }
+ }
while (--write_records != 0);
}
}