diff options
Diffstat (limited to 'lib/tdb2/test/run-tdb1-corrupt.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-corrupt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/tdb2/test/run-tdb1-corrupt.c b/lib/tdb2/test/run-tdb1-corrupt.c index 6403acb1ea..d46570f63b 100644 --- a/lib/tdb2/test/run-tdb1-corrupt.c +++ b/lib/tdb2/test/run-tdb1-corrupt.c @@ -47,9 +47,8 @@ static void check_test(struct tdb_context *tdb) ok1(tdb_check(tdb, NULL, NULL) == TDB_SUCCESS); - key.dptr = (void *)"hello"; - data.dsize = strlen("world"); - data.dptr = (void *)"world"; + key = tdb_mkdata("hello", strlen("hello")); + data = tdb_mkdata("world", strlen("world")); /* Key and data size respectively. */ dsize = ksize = 0; |