summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-04-19 17:59:13 +0000
committerJeremy Allison <jra@samba.org>2002-04-19 17:59:13 +0000
commit16e1ff4f3a09a1207e5c7b1d26c0fbe961de76d1 (patch)
tree14ad3aa75b6ac388815dba00d8d7af56b4487c23 /source3/include
parent4f4d25d3e14a297f8ee31917f4307667f7b8a46b (diff)
downloadsamba-16e1ff4f3a09a1207e5c7b1d26c0fbe961de76d1.tar.gz
samba-16e1ff4f3a09a1207e5c7b1d26c0fbe961de76d1.tar.bz2
samba-16e1ff4f3a09a1207e5c7b1d26c0fbe961de76d1.zip
Added Martin's lpq parse fixes from 2.2.
Jeremy. (This used to be commit 3853234c2649c501e9876f940f802be86cb6383d)
Diffstat (limited to 'source3/include')
-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))