diff options
author | Jeremy Allison <jra@samba.org> | 2002-04-19 17:59:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-04-19 17:59:13 +0000 |
commit | 16e1ff4f3a09a1207e5c7b1d26c0fbe961de76d1 (patch) | |
tree | 14ad3aa75b6ac388815dba00d8d7af56b4487c23 /source3/include | |
parent | 4f4d25d3e14a297f8ee31917f4307667f7b8a46b (diff) | |
download | samba-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.h | 3 |
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)) |