From f264741aa03d66bf553861a8707c87885bd3aecb Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 1 Oct 2021 00:58:21 -0500 Subject: [PATCH] benchmark.c: fix -Wstringop-truncation in _ASYNC_CRYPT bench_stats_add(). --- wolfcrypt/benchmark/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index c3347119f..34839b88a 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -1072,7 +1072,7 @@ typedef enum bench_stat_type { typedef struct bench_stats { struct bench_stats* next; struct bench_stats* prev; - char algo[BENCH_MAX_NAME_SZ]; /* may not be static, so make copy */ + char algo[BENCH_MAX_NAME_SZ+1]; /* may not be static, so make copy */ const char* desc; double perfsec; int strength;