=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/patch.c,v retrieving revision 1.48 retrieving revision 1.49 diff -c -r1.48 -r1.49 *** src/usr.bin/patch/patch.c 2009/10/27 23:59:41 1.48 --- src/usr.bin/patch/patch.c 2010/07/24 01:10:12 1.49 *************** *** 1,4 **** ! /* $OpenBSD: patch.c,v 1.48 2009/10/27 23:59:41 deraadt Exp $ */ /* * patch - a program to apply diffs to original files --- 1,4 ---- ! /* $OpenBSD: patch.c,v 1.49 2010/07/24 01:10:12 ray Exp $ */ /* * patch - a program to apply diffs to original files *************** *** 109,117 **** /* buffer holding the name of the rejected patch file. */ static char rejname[NAME_MAX + 1]; - /* buffer for stderr */ - static char serrbuf[BUFSIZ]; - /* how many input lines have been irretractibly output */ static LINENUM last_frozen_line = 0; --- 109,114 ---- *************** *** 150,156 **** const char *tmpdir; char *v; ! setbuf(stderr, serrbuf); for (i = 0; i < MAXFILEC; i++) filearg[i] = NULL; --- 147,154 ---- const char *tmpdir; char *v; ! setlinebuf(stdout); ! setlinebuf(stderr); for (i = 0; i < MAXFILEC; i++) filearg[i] = NULL;