summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2002-11-07 15:32:48 +0000
committerJim McDonough <jmcd@samba.org>2002-11-07 15:32:48 +0000
commit36545ee9a78146fa03d27fed6c7184d5fdadb2ab (patch)
tree56d64fcf617645a84fbc4db2b7aa6b65e29b013e /source/torture
parent117077b172acbdf0e059feb0d598e99cec481291 (diff)
downloadsamba-36545ee9a78146fa03d27fed6c7184d5fdadb2ab.tar.gz
samba-36545ee9a78146fa03d27fed6c7184d5fdadb2ab.tar.xz
samba-36545ee9a78146fa03d27fed6c7184d5fdadb2ab.zip
Fix the build.
Build farm! Build farm! Please check the build farm! ...or at least run make torture.
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/mangle_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/torture/mangle_test.c b/source/torture/mangle_test.c
index ced0185c951..6d127a918eb 100644
--- a/source/torture/mangle_test.c
+++ b/source/torture/mangle_test.c
@@ -94,8 +94,11 @@ static BOOL test_one(struct cli_state *cli, const char *name)
}
free(data.dptr);
} else {
+ TDB_DATA namedata;
/* store it for later */
- tdb_store_by_string(tdb, shortname, name, strlen(name)+1);
+ namedata.dptr = name;
+ namedata.dsize = strlen(name)+1;
+ tdb_store_by_string(tdb, shortname, namedata, TDB_REPLACE);
}
return True;