summaryrefslogtreecommitdiff
path: root/lib/util/string_wrappers.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-03 13:40:07 -0700
committerJeremy Allison <jra@samba.org>2011-05-04 12:12:14 -0700
commit5fa6f390d1a4bdd3c82ced271e4db6c7241194f6 (patch)
tree6885aad9db1ff890d8ede88b015f81a5223a5364 /lib/util/string_wrappers.h
parenta2915089de95dfc7c55d79a54ed70d279a2c6dfe (diff)
downloadsamba-5fa6f390d1a4bdd3c82ced271e4db6c7241194f6.tar.gz
samba-5fa6f390d1a4bdd3c82ced271e4db6c7241194f6.tar.bz2
samba-5fa6f390d1a4bdd3c82ced271e4db6c7241194f6.zip
Remove overmalloc_safe_strcpy - can be simple strlcpy.
Diffstat (limited to 'lib/util/string_wrappers.h')
-rw-r--r--lib/util/string_wrappers.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/util/string_wrappers.h b/lib/util/string_wrappers.h
index 79119348c5..4a5f51d96b 100644
--- a/lib/util/string_wrappers.h
+++ b/lib/util/string_wrappers.h
@@ -56,14 +56,6 @@ size_t __unsafe_string_function_usage_here_size_t__(void);
* update a lot of code. To make this a little easier here are some
* functions that provide the lengths with less pain */
-/* 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! */
-
-#define overmalloc_safe_strcpy(dest,src,maxlength) \
- safe_strcpy_fn(dest,src,maxlength)
-
#ifdef HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
/* if the compiler will optimize out function calls, then use this to tell if we are