summaryrefslogtreecommitdiff
path: root/nsswitch/winbind_nss_config.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-03 13:10:01 -0700
committerJeremy Allison <jra@samba.org>2011-05-04 12:12:13 -0700
commit017e0c8d95fe8212b006e1c14aef8d96fed30674 (patch)
tree3bb209bc92d298d17255a69713981a7df18d0b8b /nsswitch/winbind_nss_config.h
parentdeba880986b1029fa059fcfba9b2a72abf598a9b (diff)
downloadsamba-017e0c8d95fe8212b006e1c14aef8d96fed30674.tar.gz
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
Diffstat (limited to 'nsswitch/winbind_nss_config.h')
-rw-r--r--nsswitch/winbind_nss_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/winbind_nss_config.h b/nsswitch/winbind_nss_config.h
index 3e2ce68252a..9231e3cf1be 100644
--- a/nsswitch/winbind_nss_config.h
+++ b/nsswitch/winbind_nss_config.h
@@ -54,7 +54,7 @@
#ifndef FSTRING_LEN
#define FSTRING_LEN 256
typedef char fstring[FSTRING_LEN];
-#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
+#define fstrcpy(d,s) strlcpy((d),(s) ? (s) : "",sizeof(fstring))
#endif
/* Some systems (SCO) treat UNIX domain sockets as FIFOs */