benchmark.c: fix -Wstringop-truncation in _ASYNC_CRYPT bench_stats_add().

This commit is contained in:
Daniel Pouzzner
2021-10-01 00:58:21 -05:00
parent 0231446006
commit f264741aa0

View File

@@ -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;