aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 9d173cc13..38b2a6aa1 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -202,8 +202,10 @@ static bool write_and_stats(const void *buf, size_t len, size_t obs,
202 G.out_full++; 202 G.out_full++;
203 return 0; 203 return 0;
204 } 204 }
205 if (n) /* > 0 */ 205 if ((size_t)n == len) {
206 G.out_part++; 206 G.out_part++;
207 return 0;
208 }
207 return 1; 209 return 1;
208} 210}
209 211