summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-24 01:17:40 +0000
committerTim Potter <tpot@samba.org>2002-04-24 01:17:40 +0000
commit5c820d063736507441921e7faf597b033095f0c7 (patch)
tree9f609b7de96e219328e9da0c81fd740109d5bea9 /source3
parent2699f9b9df3f974a34e40761141361e997638b6c (diff)
downloadsamba-5c820d063736507441921e7faf597b033095f0c7.tar.gz
samba-5c820d063736507441921e7faf597b033095f0c7.tar.bz2
samba-5c820d063736507441921e7faf597b033095f0c7.zip
Merged [fp]strterminate macros from HEAD to fix compile.
(This used to be commit 9fe4363e15239d302c1caf58fe76614cf7a53778)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/safe_string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/safe_string.h b/source3/include/safe_string.h
index 1ee97833c5..118c2302bd 100644
--- a/source3/include/safe_string.h
+++ b/source3/include/safe_string.h
@@ -53,6 +53,9 @@
#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
#define fstrcat(d,s) safe_strcat((d),(s),sizeof(fstring)-1)
+#define fstrterminate(d) (((d)[sizeof(fstring)-1]) = '\0')
+#define pstrterminate(d) (((d)[sizeof(pstring)-1]) = '\0')
+
#define wpstrcpy(d,s) safe_strcpy_w((d),(s),sizeof(wpstring))
#define wpstrcat(d,s) safe_strcat_w((d),(s),sizeof(wpstring))
#define wfstrcpy(d,s) safe_strcpy_w((d),(s),sizeof(wfstring))