ctdbd_conn: Remove one call to cluster_fatal
[mat/samba.git] / nsswitch / winbind_nss_config.h
index 3e2ce68252ab98362b895061b2a7f66c85463a4d..e1ad3f64635fe5951a22d42d5923df3c0938ccba 100644 (file)
 #ifndef FSTRING_LEN
 #define FSTRING_LEN 256
 typedef char fstring[FSTRING_LEN];
-#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
+#ifndef fstrcpy
+#define fstrcpy(d,s) \
+do { \
+        const char *_fstrcpy_src = (const char *)(s); \
+        strlcpy((d),_fstrcpy_src ? _fstrcpy_src : "",sizeof(fstring)); \
+} while (0)
+#endif
 #endif
 
 /* Some systems (SCO) treat UNIX domain sockets as FIFOs */