From 508f2f5506a14814888718bf00f52b7788d0e9ea Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 20 Mar 2006 23:35:08 +0000 Subject: r14594: Fix some dependencies (required for shared library build) (This used to be commit 06f7a8c692a645830eb3dd9abad8556c66bba747) --- source4/lib/ldb/common/ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 0d424ad601..6e1f6f5cde 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -106,7 +106,7 @@ int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, co ldb_connect_fn fn; if (strchr(url, ':') != NULL) { - backend = talloc_strndup(ldb, url, strchr(url, ':')-url); + backend = talloc_strndup(ldb, url, strchr(url, ':')-url-1); } else { /* Default to tdb */ backend = talloc_strdup(ldb, "tdb"); -- cgit