diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-03 13:10:01 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:13 -0700 |
commit | 017e0c8d95fe8212b006e1c14aef8d96fed30674 (patch) | |
tree | 3bb209bc92d298d17255a69713981a7df18d0b8b /nsswitch | |
parent | deba880986b1029fa059fcfba9b2a72abf598a9b (diff) | |
download | samba-017e0c8d95fe8212b006e1c14aef8d96fed30674.tar.gz samba-017e0c8d95fe8212b006e1c14aef8d96fed30674.tar.bz2 samba-017e0c8d95fe8212b006e1c14aef8d96fed30674.zip |
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/winbind_nss_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/winbind_nss_config.h b/nsswitch/winbind_nss_config.h index 3e2ce68252..9231e3cf1b 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 */ |