From: Christos Zoulas Date: Sun, 30 Sep 2018 20:56:14 +0000 (-0400) Subject: don't pass const string where a modifyable string is expected X-Git-Tag: openssl-3.0.0-alpha1~2734 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82f518acee36754cb6f64d39ba926b32daae2534;p=thirdparty%2Fopenssl.git don't pass const string where a modifyable string is expected Reviewed-by: Richard Levitte Reviewed-by: Viktor Dukhovni --- diff --git a/test/testutil/tap_bio.c b/test/testutil/tap_bio.c index 1b3881c7ee6..f3ee2787d21 100644 --- a/test/testutil/tap_bio.c +++ b/test/testutil/tap_bio.c @@ -93,13 +93,14 @@ static int write_string(BIO *b, const char *buf, size_t n) */ static int tap_write_ex(BIO *b, const char *buf, size_t size, size_t *in_size) { + static char empty[] = ""; BIO *next = BIO_next(b); size_t i; int j; for (i = 0; i < size; i++) { if (BIO_get_data(b) == NULL) { - BIO_set_data(b, ""); + BIO_set_data(b, empty); for (j = 0; j < subtest_level(); j++) if (!write_string(next, " ", 1)) goto err;