From 8da9c4e3a5044ffab148d9ad354819b09361b295 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 31 Dec 2022 20:31:13 +0200 Subject: [PATCH] =?UTF-8?q?don't=20fail=20on=20=E2=80=A2SH=20under=20VERIF?= =?UTF-8?q?Y=5FTAIL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/sysfn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/builtins/sysfn.c b/src/builtins/sysfn.c index 114fdb31..fed11936 100644 --- a/src/builtins/sysfn.c +++ b/src/builtins/sysfn.c @@ -1016,6 +1016,9 @@ B sh_c2(B t, B w, B x) { // free output buffer assert(reusable(oBufObj)); + #if VERIFY_TAIL + *oBufIA = bufsz; + #endif mm_free(v(oBufObj)); // free our ends of pipes if (!iDone) { shClose(p_in[1]); FREE_INPUT; shDbg("only got to write "N64u"/"N64u"\n", iOff, iLen); }