From 4cb984dac2d2acc60cfbde042c72b9dcafd40177 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 25 Apr 2003 07:46:43 +0000 Subject: [PATCH] (copy_file_preserving): Declare buf_size to be of type size_t, not int. --- lib/copy-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/copy-file.c b/lib/copy-file.c index 7de2ca63d8..41191d21a0 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -57,7 +57,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) -- 2.30.2