summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_str.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index cd906d37c0..d4291082da 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -442,7 +442,9 @@ char *safe_strcpy(char *dest,const char *src, size_t maxlength)
return NULL;
}
+#ifdef DEVELOPER
dest[maxlength]='\0';
+#endif
if (!src) {
*dest = 0;