mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
ctdb: Fix format in db_hash_test
error: ‘%04d’ directive writing between 4 and 11 bytes into a region of size 5 [-Werror=format-overflow=] sprintf(key, "key%04d", i); Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
5a9e338330
commit
d16e9dfc81
@ -99,7 +99,7 @@ static void do_traverse_test(enum db_hash_type type)
|
||||
{
|
||||
struct db_hash_context *dh = NULL;
|
||||
TALLOC_CTX *mem_ctx = talloc_new(NULL);
|
||||
char key[] = "keyXXXX";
|
||||
char key[16] = "keyXXXX";
|
||||
char value[] = "This is some test value";
|
||||
int count, ret, i;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user