summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 1c1b31a83c..d52ff82b10 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -894,7 +894,7 @@ char *safe_strcpy(char *dest,const char *src, size_t maxlength)
len = maxlength;
}
- memcpy(dest, src, len);
+ memmove(dest, src, len);
dest[len] = 0;
return dest;
}