aboutsummaryrefslogtreecommitdiff
path: root/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'dd.c')
-rw-r--r--dd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dd.c b/dd.c
index 01441c314..1002c0771 100644
--- a/dd.c
+++ b/dd.c
@@ -116,7 +116,8 @@ extern int dd_main(int argc, char **argv)
116 * here anyways... */ 116 * here anyways... */
117 117
118 /* free(buf); */ 118 /* free(buf); */
119 fatalError( inFile); 119 perror(inFile);
120 exit(FALSE);
120 } 121 }
121 122
122 if (outFile == NULL) 123 if (outFile == NULL)
@@ -131,7 +132,8 @@ extern int dd_main(int argc, char **argv)
131 132
132 /* close(inFd); 133 /* close(inFd);
133 free(buf); */ 134 free(buf); */
134 fatalError( outFile); 135 perror(outFile);
136 exit(FALSE);
135 } 137 }
136 138
137 lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET); 139 lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);