summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-03-18 05:42:53 +0000
committerMartin Pool <mbp@samba.org>2003-03-18 05:42:53 +0000
commitc52a31b21a656928caedc48211905b713779801a (patch)
treea241ef2b16d04c93744e723ae0c387a1304080d7 /source3/include
parent29fa4c1631d70daf564a52cf23740c6e1b5316f6 (diff)
downloadsamba-c52a31b21a656928caedc48211905b713779801a.tar.gz
samba-c52a31b21a656928caedc48211905b713779801a.tar.bz2
samba-c52a31b21a656928caedc48211905b713779801a.zip
Comment about deprecated macro overmalloc_safe_strcpy().
(This used to be commit 5ac062580690eee9b4bd423dbb82631c0cdb8b30)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/safe_string.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/safe_string.h b/source3/include/safe_string.h
index d01a6c6321..61ef4bdf96 100644
--- a/source3/include/safe_string.h
+++ b/source3/include/safe_string.h
@@ -135,6 +135,12 @@ size_t __unsafe_string_function_usage_here_char__(void);
* a clobbering into a static buffer. If the program crashes at
* address 0xf1f1f1f1 then this function is probably, but not
* necessarily, to blame. */
+
+/* overmalloc_safe_strcpy: DEPRECATED! Used when you know the
+ * destination buffer is longer than maxlength, but you don't know how
+ * long. This is not a good situation, because we can't do the normal
+ * sanity checks. Don't use in new code! */
+
#ifdef DEVELOPER
#define overmalloc_safe_strcpy(dest,src,maxlength) safe_strcpy_fn(__FUNCTION__,__LINE__,dest,src,maxlength)
#define safe_strcpy(dest,src,maxlength) safe_strcpy_fn2(__FUNCTION__,__LINE__,dest,src,maxlength)