=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/util.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/patch/util.c 2014/12/13 10:31:07 1.38 --- src/usr.bin/patch/util.c 2015/01/16 06:40:10 1.39 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.38 2014/12/13 10:31:07 tobias Exp $ */ /* * patch - a program to apply diffs to original files --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.39 2015/01/16 06:40:10 deraadt Exp $ */ /* * patch - a program to apply diffs to original files *************** *** 26,32 **** * behaviour */ - #include #include #include --- 26,31 ---- *************** *** 95,101 **** backup_file(const char *orig) { struct stat filestat; ! char bakname[MAXPATHLEN], *s, *simplename; dev_t orig_device; ino_t orig_inode; --- 94,100 ---- backup_file(const char *orig) { struct stat filestat; ! char bakname[PATH_MAX], *s, *simplename; dev_t orig_device; ino_t orig_inode; *************** *** 396,402 **** char * checked_in(char *file) { ! char *filebase, *filedir, tmpbuf[MAXPATHLEN]; struct stat filestat; filebase = basename(file); --- 395,401 ---- char * checked_in(char *file) { ! char *filebase, *filedir, tmpbuf[PATH_MAX]; struct stat filestat; filebase = basename(file);