diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-03 13:52:06 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:14 -0700 |
commit | cabd9e70e2f3ce3f617975a4d005d79121313b5f (patch) | |
tree | 1e37010a534763794be717a8f092f2f23b474c58 /source3/passdb | |
parent | 265338c194ceab2520ed1df0f64b62e7169406dd (diff) | |
download | samba-cabd9e70e2f3ce3f617975a4d005d79121313b5f.tar.gz samba-cabd9e70e2f3ce3f617975a4d005d79121313b5f.tar.bz2 samba-cabd9e70e2f3ce3f617975a4d005d79121313b5f.zip |
Simple +1 changes in hardcoded lengths when changing from safe_strcpy to strlcpy.
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 62af5be7eb..a2fc12ae4b 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -384,9 +384,9 @@ void pdb_sethexpwd(char p[33], const unsigned char *pwd, uint32_t acct_ctrl) slprintf(&p[i*2], 3, "%02X", pwd[i]); } else { if (acct_ctrl & ACB_PWNOTREQ) - safe_strcpy(p, "NO PASSWORDXXXXXXXXXXXXXXXXXXXXX", 32); + strlcpy(p, "NO PASSWORDXXXXXXXXXXXXXXXXXXXXX", 33); else - safe_strcpy(p, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 32); + strlcpy(p, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 33); } } @@ -435,7 +435,7 @@ void pdb_sethexhours(char *p, const unsigned char *hours) slprintf(&p[i*2], 3, "%02X", hours[i]); } } else { - safe_strcpy(p, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", 43); + strlcpy(p, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", 44); } } |