(copy_file_preserving): Declare buf_size to be of type size_t, not int.
authorJim Meyering <jim@meyering.net>
Fri, 25 Apr 2003 07:46:43 +0000 (07:46 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 25 Apr 2003 07:46:43 +0000 (07:46 +0000)
lib/copy-file.c

index 7de2ca63d84bc4aac632011dfe81a3ee5bfdf6e2..41191d21a016d64d73e7e15cc39a9a0f497b02ca 100644 (file)
@@ -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)