=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/copy.c,v retrieving revision 1.2.2.1 retrieving revision 1.3 diff -c -r1.2.2.1 -r1.3 *** src/usr.bin/rsync/copy.c 2021/11/10 09:00:59 1.2.2.1 --- src/usr.bin/rsync/copy.c 2021/11/28 19:28:42 1.3 *************** *** 1,4 **** ! /* $OpenBSD: copy.c,v 1.2.2.1 2021/11/10 09:00:59 bluhm Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * --- 1,4 ---- ! /* $OpenBSD: copy.c,v 1.3 2021/11/28 19:28:42 deraadt Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * *************** *** 15,21 **** * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ ! #include /* MAXBSIZE */ #include #include --- 15,21 ---- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ ! #include #include #include *************** *** 23,28 **** --- 23,30 ---- #include "extern.h" + #define _MAXBSIZE (64 * 1024) + /* * Return true if all bytes in buffer are zero. * A buffer of zero lenght is also considered a zero buffer. *************** *** 42,48 **** static int copy_internal(int fromfd, int tofd) { ! char buf[MAXBSIZE]; ssize_t r, w; while ((r = read(fromfd, buf, sizeof(buf))) > 0) { --- 44,50 ---- static int copy_internal(int fromfd, int tofd) { ! char buf[_MAXBSIZE]; ssize_t r, w; while ((r = read(fromfd, buf, sizeof(buf))) > 0) {