=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/xinstall/xinstall.c,v retrieving revision 1.75 retrieving revision 1.76 diff -c -r1.75 -r1.76 *** src/usr.bin/xinstall/xinstall.c 2021/10/24 21:24:18 1.75 --- src/usr.bin/xinstall/xinstall.c 2021/11/28 19:28:42 1.76 *************** *** 1,4 **** ! /* $OpenBSD: xinstall.c,v 1.75 2021/10/24 21:24:18 deraadt Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: xinstall.c,v 1.76 2021/11/28 19:28:42 deraadt Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* *************** *** 30,36 **** * SUCH DAMAGE. */ ! #include /* MAXBSIZE */ #include #include #include --- 30,36 ---- * SUCH DAMAGE. */ ! #include #include #include #include *************** *** 51,56 **** --- 51,58 ---- #include "pathnames.h" + #define _MAXBSIZE (64 * 1024) + #define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) #define DIRECTORY 0x01 /* Tell install it's a directory. */ *************** *** 403,409 **** { ssize_t nr, nw; int serrno; ! char *p, buf[MAXBSIZE]; if (size == 0) return; --- 405,411 ---- { ssize_t nr, nw; int serrno; ! char *p, buf[_MAXBSIZE]; if (size == 0) return;