summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/basic/mangle_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/basic/mangle_test.c b/source4/torture/basic/mangle_test.c
index 729e2c5c43..dc7bc21a55 100644
--- a/source4/torture/basic/mangle_test.c
+++ b/source4/torture/basic/mangle_test.c
@@ -144,7 +144,7 @@ static char *gen_name(TALLOC_CTX *mem_ctx)
}
/* and a medium probability of a common lead string */
- if (random() % 10 == 0) {
+ if ((len > 5) && (random() % 10 == 0)) {
strncpy(p, "ABCDE", 5);
}