aboutsummaryrefslogtreecommitdiff
path: root/coreutils/dd.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-26 15:45:17 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-26 15:45:17 +0000
commitdd16e0325070225462e98088574fd17defad0ae0 (patch)
treeaf6c1681e91a3e5c13bf3dce8aa798c07462468a /coreutils/dd.c
parent48a92503e79c2345601821c4599ee25d1db35d66 (diff)
downloadbusybox-w32-dd16e0325070225462e98088574fd17defad0ae0.tar.gz
busybox-w32-dd16e0325070225462e98088574fd17defad0ae0.tar.bz2
busybox-w32-dd16e0325070225462e98088574fd17defad0ae0.zip
small fixes:
fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc. git-svn-id: svn://busybox.net/trunk/busybox@16673 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r--coreutils/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 01702a580..01f37abeb 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -138,7 +138,7 @@ int dd_main(int argc, char **argv)
138 if (!seek && (flags & trunc_flag)) 138 if (!seek && (flags & trunc_flag))
139 oflag |= O_TRUNC; 139 oflag |= O_TRUNC;
140 140
141 ofd = xopen3(outfile, oflag, 0666); 141 ofd = xopen(outfile, oflag);
142 142
143 if (seek && (flags & trunc_flag)) { 143 if (seek && (flags & trunc_flag)) {
144 if (ftruncate(ofd, seek * obs) < 0) { 144 if (ftruncate(ofd, seek * obs) < 0) {