summaryrefslogtreecommitdiff
path: root/source3/include/safe_string.h
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-15 02:10:50 +0000
committerMartin Pool <mbp@samba.org>2002-01-15 02:10:50 +0000
commita276e917d89f84adadf047fedbfb52da70679138 (patch)
tree78a7b9c4140a392ea9a7097ab38cb615dca6ed67 /source3/include/safe_string.h
parent17745322abab7c80efbd5beacc0e6e0a1243eb07 (diff)
downloadsamba-a276e917d89f84adadf047fedbfb52da70679138.tar.gz
samba-a276e917d89f84adadf047fedbfb52da70679138.tar.bz2
samba-a276e917d89f84adadf047fedbfb52da70679138.zip
Integrate with PSTRING_SANCTIFY.
(This used to be commit 20a03facb6acf6329acc1645d4e9ead863a1a57c)
Diffstat (limited to 'source3/include/safe_string.h')
-rw-r--r--source3/include/safe_string.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/safe_string.h b/source3/include/safe_string.h
index e609381a89..c4f44c0a34 100644
--- a/source3/include/safe_string.h
+++ b/source3/include/safe_string.h
@@ -37,10 +37,10 @@
#endif /* sprintf */
#define sprintf __ERROR__XX__NEVER_USE_SPRINTF__;
-#define pstrcpy(d,s) safe_strcpy((d),(s),sizeof(pstring)-1)
-#define pstrcat(d,s) safe_strcat((d),(s),sizeof(pstring)-1)
-#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
-#define fstrcat(d,s) safe_strcat((d),(s),sizeof(fstring)-1)
+#define pstrcpy(d,s) safe_strcpy(PSTR_MUTABLE(d), (s),sizeof(pstring)-1)
+#define pstrcat(d,s) safe_strcat(PSTR_MUTABLE(d), (s),sizeof(pstring)-1)
+#define fstrcpy(d,s) safe_strcpy(FSTR_MUTABLE(d),(s),sizeof(fstring)-1)
+#define fstrcat(d,s) safe_strcat(FSTR_MUTABLE(d),(s),sizeof(fstring)-1)
#define wpstrcpy(d,s) safe_strcpy_w((d),(s),sizeof(wpstring))
#define wpstrcat(d,s) safe_strcat_w((d),(s),sizeof(wpstring))