=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/compile.c,v retrieving revision 1.35 retrieving revision 1.36 diff -c -r1.35 -r1.36 *** src/usr.bin/sed/compile.c 2013/11/28 18:24:55 1.35 --- src/usr.bin/sed/compile.c 2014/10/08 04:19:08 1.36 *************** *** 1,4 **** ! /* $OpenBSD: compile.c,v 1.35 2013/11/28 18:24:55 deraadt Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. --- 1,4 ---- ! /* $OpenBSD: compile.c,v 1.36 2014/10/08 04:19:08 deraadt Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. *************** *** 128,135 **** *compile_stream(&prog) = NULL; fixuplabel(prog, NULL); uselabel(); ! appends = xmalloc(sizeof(struct s_appends) * appendnum); ! match = xmalloc((maxnsub + 1) * sizeof(regmatch_t)); } #define EATSPACE() do { \ --- 128,135 ---- *compile_stream(&prog) = NULL; fixuplabel(prog, NULL); uselabel(); ! appends = xreallocarray(NULL, appendnum, sizeof(struct s_appends)); ! match = xreallocarray(NULL, maxnsub + 1, sizeof(regmatch_t)); } #define EATSPACE() do { \