summaryrefslogtreecommitdiff
path: root/source4/include/pstring.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-02-23 12:44:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:05 -0500
commitd3bcaf66a8568fc19a3013f9dc974fb08ee3a39a (patch)
tree2c567a9bf3c8f28bc19c546dd0cfad2aa0dc816e /source4/include/pstring.h
parent559ba6f12aacf3639ad6268490bc8ed33b1fb803 (diff)
downloadsamba-d3bcaf66a8568fc19a3013f9dc974fb08ee3a39a.tar.gz
samba-d3bcaf66a8568fc19a3013f9dc974fb08ee3a39a.tar.bz2
samba-d3bcaf66a8568fc19a3013f9dc974fb08ee3a39a.zip
r13654: Move some more stuff out of include/
(This used to be commit 2ec7bba03a2edf713004941e9ed74798f5cf8d32)
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