From a7c7a9c64c01287efa100ac26863b8b8ab3f3b65 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Jul 2005 09:02:58 +0000 Subject: r8364: fixed a valgrind bug spotted by simo (This used to be commit ef804e8f36f1835d5d61f69565f1195a70f37e74) --- source4/lib/ldb/common/ldb_attributes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb_attributes.c b/source4/lib/ldb/common/ldb_attributes.c index 3d4f24771f..a915666d78 100644 --- a/source4/lib/ldb/common/ldb_attributes.c +++ b/source4/lib/ldb/common/ldb_attributes.c @@ -278,7 +278,7 @@ void ldb_subclass_remove(struct ldb_context *ldb, const char *class) talloc_free(c->name); talloc_free(c->subclasses); if (ldb->schema.num_classes-(i+1) > 0) { - memmove(c, c+1, sizeof(*c) * ldb->schema.num_classes-(i+1)); + memmove(c, c+1, sizeof(*c) * (ldb->schema.num_classes-(i+1))); } ldb->schema.num_classes--; if (ldb->schema.num_classes == 0) { -- cgit