diff --git a/src/yes.c b/src/yes.c index 396618cb5..ceb7ce447 100644 --- a/src/yes.c +++ b/src/yes.c @@ -96,6 +96,11 @@ main (int argc, char **argv) reuse_operand_strings = false; } +#if defined __CHERI__ + /* Cheri capability bounds do not allow for this. */ + reuse_operand_strings = false; +#endif + /* Fill the buffer with one copy of the output. If possible, reuse the operands strings; this wins when the buffer would be large. */ char *buf = reuse_operand_strings ? *operands : xmalloc (bufalloc);