=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/process.c,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/usr.bin/sed/process.c 2016/05/30 18:10:29 1.28 --- src/usr.bin/sed/process.c 2016/10/11 19:27:39 1.29 *************** *** 1,4 **** ! /* $OpenBSD: process.c,v 1.28 2016/05/30 18:10:29 martijn Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. --- 1,4 ---- ! /* $OpenBSD: process.c,v 1.29 2016/10/11 19:27:39 martijn Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. *************** *** 404,410 **** regexec_e(re, ps, REG_NOTBOL, 0, le, psl)); /* Did not find the requested number of matches. */ ! if (n > 1) return (0); /* Copy the trailing retained string. */ --- 404,410 ---- regexec_e(re, ps, REG_NOTBOL, 0, le, psl)); /* Did not find the requested number of matches. */ ! if (n > 0) return (0); /* Copy the trailing retained string. */