From bc8c03b66221e83417325a495397fa5045780b8d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 17 Feb 2003 12:33:24 +0000 Subject: This is a very nice way to detect pstrcpy() into a malloc()ed string, but it really is a developer hack... Andrew Bartlett (This used to be commit 3588ebb35b14422141d4070413185195b525038e) --- source3/lib/util_str.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib') 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; -- cgit