From 79109281ed47427b88e1cc5eae8325954cc7de80 Mon Sep 17 00:00:00 2001 From: dkf Date: Thu, 25 Mar 2010 14:53:35 +0000 Subject: * unix/tclUnixFCmd.c (TclUnixCopyFile): [Bug 2976504]: Corrected number of arguments to fstatfs() call. --- ChangeLog | 3 +++ unix/tclUnixFCmd.c | 4 ++-- 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 + * 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; -- cgit v0.12