diff lib/copy-file.c @ 4308:38cad811ac67

(copy_file_preserving): Declare buf_size to be of type size_t, not int.
author Jim Meyering <jim@meyering.net>
date Fri, 25 Apr 2003 07:46:43 +0000
parents 4933582b32c1
children 17ce7ef2789c
line wrap: on
line diff
--- a/lib/copy-file.c
+++ b/lib/copy-file.c
@@ -57,7 +57,7 @@
   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)