summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-26 17:40:43 +0000
committerJeremy Allison <jra@samba.org>2002-02-26 17:40:43 +0000
commit62299aa7475bad48ba3e230596f09e794c2b4ce5 (patch)
tree7ef38a07a3d7279135e23af343cc4a828e454ac3 /source3/include
parent97d96862ca84f599ee6fed0910389e07d46ee91d (diff)
downloadsamba-62299aa7475bad48ba3e230596f09e794c2b4ce5.tar.gz
samba-62299aa7475bad48ba3e230596f09e794c2b4ce5.tar.bz2
samba-62299aa7475bad48ba3e230596f09e794c2b4ce5.zip
bcopy must DIE ! Stop people creeping use of bcopy back into the code
(and yes I know who you are..... :-). Jeremy. (This used to be commit 330b0df960329bcf4696b8fa4a7357e6c456f74e)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/safe_string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/safe_string.h b/source3/include/safe_string.h
index 487174dec3..1ee97833c5 100644
--- a/source3/include/safe_string.h
+++ b/source3/include/safe_string.h
@@ -26,6 +26,11 @@
/* Some macros to ensure people don't use buffer overflow vulnerable string
functions. */
+#ifdef bcopy
+#undef bcopy
+#endif /* bcopy */
+#define bcopy(src,dest,size) __ERROR__XX__NEVER_USE_BCOPY___;
+
#ifdef strcpy
#undef strcpy
#endif /* strcpy */