SCCS-vsn: usr.bin/sed/process.c 5.12
-static char sccsid[] = "@(#)process.c 5.11 (Berkeley) %G%";
+static char sccsid[] = "@(#)process.c 5.12 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
* need two extra bytes, one for the newline, one for a terminating
* NULL.
*/
* need two extra bytes, one for the newline, one for a terminating
* NULL.
*/
- tlen = sp->len + len + spflag == APPENDNL ? 2 : 1;
+ tlen = sp->len + len + (spflag == APPENDNL ? 2 : 1);
if (tlen > sp->blen) {
sp->blen = tlen + 1024;
sp->space = sp->back = xrealloc(sp->back, sp->blen);
if (tlen > sp->blen) {
sp->blen = tlen + 1024;
sp->space = sp->back = xrealloc(sp->back, sp->blen);