From e8265c651590155262d167210ba8e3a287ae7a0e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 29 Mar 2007 07:30:22 +0000 Subject: r22006: use string_term_tdb_data()... metze (This used to be commit 136914502ff129b90f10794ed6474dca558c75a0) --- source3/lib/sharesec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index c4704dfc12..2b9cc8c691 100644 --- a/source3/lib/sharesec.c +++ b/source3/lib/sharesec.c @@ -194,8 +194,7 @@ BOOL delete_share_security(const struct share_params *params) slprintf(key, sizeof(key)-1, "SECDESC/%s", lp_servicename(params->service)); - kbuf.dptr = key; - kbuf.dsize = strlen(key)+1; + kbuf = string_term_tdb_data(key); if (tdb_trans_delete(share_tdb, kbuf) != 0) { DEBUG(0,("delete_share_security: Failed to delete entry for share %s\n", -- cgit