Skip to content

Commit b7ec4a9

Browse files
committed
test: fix warning about missing NUL terminator
Both gcc-15 and clang-22 now warn if there is no space for null character. As we use this as binary buffer, just do not use fixed char array here.
1 parent 10e5ab1 commit b7ec4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/crypto-vectors.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,11 @@ struct cipher_iv_test_vector {
733733
const char *iv_name;
734734
uint64_t iv_offset;
735735
unsigned int data_length;
736-
const char in_sha256[32];
736+
const char *in_sha256;
737737
struct {
738738
size_t sector_size;
739739
bool large_iv;
740-
const char out_sha256[32];
740+
const char *out_sha256;
741741
} out[7];
742742
};
743743

0 commit comments

Comments
 (0)