summaryrefslogtreecommitdiffstats
path: root/source/include
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
commit20a03facb6acf6329acc1645d4e9ead863a1a57c (patch)
tree0e6919786a68758a7cc331c68c758a7bc8a006f5 /source/include
parentbf513668cb76fd20b04b8142c86c263280b05bb6 (diff)
downloadsamba-20a03facb6acf6329acc1645d4e9ead863a1a57c.tar.gz
samba-20a03facb6acf6329acc1645d4e9ead863a1a57c.tar.xz
samba-20a03facb6acf6329acc1645d4e9ead863a1a57c.zip
Integrate with PSTRING_SANCTIFY.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/safe_string.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/include/safe_string.h b/source/include/safe_string.h
index e609381a898..c4f44c0a34b 100644
--- a/source/include/safe_string.h
+++ b/source/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))