summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/ldap_escape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldap_escape.c b/source3/lib/ldap_escape.c
index fa75dabcae6..0d2b8f5fe01 100644
--- a/source3/lib/ldap_escape.c
+++ b/source3/lib/ldap_escape.c
@@ -76,7 +76,7 @@ char *escape_ldap_string(TALLOC_CTX *mem_ctx, const char *s)
output = tmp;
p = &output[i];
- strncpy (p, sub, 3);
+ memcpy(p, sub, 3);
p += 3;
i += 3;