summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-03-25 14:53:35 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-03-25 14:53:35 (GMT)
commit79109281ed47427b88e1cc5eae8325954cc7de80 (patch)
tree526c93d5b5cc5eac195143249f0ff6f70aee6ec0
parent851cf874f33c0a191357ff2968e12e7a91147b85 (diff)
downloadtcl-79109281ed47427b88e1cc5eae8325954cc7de80.zip
tcl-79109281ed47427b88e1cc5eae8325954cc7de80.tar.gz
tcl-79109281ed47427b88e1cc5eae8325954cc7de80.tar.bz2
* unix/tclUnixFCmd.c (TclUnixCopyFile): [Bug 2976504]: Corrected
number of arguments to fstatfs() call.
-rw-r--r--ChangeLog3
-rw-r--r--unix/tclUnixFCmd.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b23c791..621065e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-03-25 Donal K. Fellows <dkf@users.sf.net>
+ * unix/tclUnixFCmd.c (TclUnixCopyFile): [Bug 2976504]: Corrected
+ number of arguments to fstatfs() call.
+
* macosx/tclMacOSXBundle.c, macosx/tclMacOSXFCmd.c:
* macosx/tclMacOSXNotify.c: Reduce the level of ifdeffery in the
functions of these files to improve readability. They need to be
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 851c979..daa40da 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixFCmd.c,v 1.75 2010/03/05 14:34:04 dkf Exp $
+ * RCS: @(#) $Id: tclUnixFCmd.c,v 1.76 2010/03/25 14:53:35 dkf Exp $
*
* Portions of this code were derived from NetBSD source code which has the
* following copyright notice:
@@ -554,7 +554,7 @@ TclUnixCopyFile(
{
struct statfs fs;
- if (fstatfs(srcFd, &fs, sizeof(fs), 0) == 0) {
+ if (fstatfs(srcFd, &fs) == 0) {
blockSize = fs.f_bsize;
} else {
blockSize = DEFAULT_COPY_BLOCK_SIZE;