summaryrefslogtreecommitdiff
path: root/source4/include/pstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include/pstring.h')
-rw-r--r--source4/include/pstring.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/include/pstring.h b/source4/include/pstring.h
index 3683849686..392ada4533 100644
--- a/source4/include/pstring.h
+++ b/source4/include/pstring.h
@@ -26,6 +26,7 @@
*/
#ifndef _PSTRING
+#define _PSTRING
#define PSTRING_LEN 1024
#define FSTRING_LEN 256
@@ -33,5 +34,9 @@
typedef char pstring[PSTRING_LEN];
typedef char fstring[FSTRING_LEN];
-#define _PSTRING
+#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)
+
#endif