bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] FYI: copy-file.c tweak


From: Jim Meyering
Subject: [Bug-gnulib] FYI: copy-file.c tweak
Date: Fri, 25 Apr 2003 09:46:59 +0200

2003-04-25  Jim Meyering  <address@hidden>

        * copy-file.c (copy_file_preserving): Declare buf_size to be
        of type size_t, not int.

Index: copy-file.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/copy-file.c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 copy-file.c
--- copy-file.c 30 Mar 2003 16:20:41 -0000      1.2
+++ copy-file.c 25 Apr 2003 07:42:42 -0000
@@ -57,7 +57,7 @@ copy_file_preserving (const char *src_fi
   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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]