summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-20 23:35:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:58:58 -0500
commit508f2f5506a14814888718bf00f52b7788d0e9ea (patch)
treedd14d2faa435a1c0f8d124041387f58c00b3702b /source4/lib/ldb/common/ldb.c
parentbb1909e15e7a9f3cd79da2ce8b8ef90f1a557376 (diff)
downloadsamba-508f2f5506a14814888718bf00f52b7788d0e9ea.tar.gz
samba-508f2f5506a14814888718bf00f52b7788d0e9ea.tar.bz2
samba-508f2f5506a14814888718bf00f52b7788d0e9ea.zip
r14594: Fix some dependencies (required for shared library build)
(This used to be commit 06f7a8c692a645830eb3dd9abad8556c66bba747)
Diffstat (limited to 'source4/lib/ldb/common/ldb.c')
-rw-r--r--source4/lib/ldb/common/ldb.c2
1 files changed, 1 insertions, 1 deletions
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");