X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcopy-file.c;h=4b21eff8eb85ce73d86153fc7222a219e5e93ff5;hb=d3195542b41d5b8bb6e282211cc52b6c73afaccf;hp=7de2ca63d84bc4aac632011dfe81a3ee5bfdf6e2;hpb=793bac547a136024a987bf30d26020fc6699ba6b;p=gnulib.git diff --git a/lib/copy-file.c b/lib/copy-file.c index 7de2ca63d..4b21eff8e 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H @@ -26,6 +26,7 @@ #include #include +#include #include #ifdef HAVE_UNISTD_H @@ -57,7 +58,7 @@ copy_file_preserving (const char *src_filename, const char *dest_filename) int mode; int dest_fd; char buf[4096]; - const int buf_size = sizeof (buf); + const size_t buf_size = sizeof (buf); src_fd = open (src_filename, O_RDONLY | O_BINARY); if (src_fd < 0 || fstat (src_fd, &statbuf) < 0)