From: Stefan Metzmacher Date: Thu, 29 Mar 2007 07:30:22 +0000 (+0000) Subject: r22006: use string_term_tdb_data()... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~820 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=136914502ff129b90f10794ed6474dca558c75a0;p=thirdparty%2Fsamba.git r22006: use string_term_tdb_data()... metze --- diff --git a/source/lib/sharesec.c b/source/lib/sharesec.c index c4704dfc125..2b9cc8c6914 100644 --- a/source/lib/sharesec.c +++ b/source/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",