diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-26 15:45:17 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-26 15:45:17 +0000 |
commit | dd16e0325070225462e98088574fd17defad0ae0 (patch) | |
tree | af6c1681e91a3e5c13bf3dce8aa798c07462468a /coreutils/dd.c | |
parent | 48a92503e79c2345601821c4599ee25d1db35d66 (diff) | |
download | busybox-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.c | 2 |
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) { |