1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-26 23:33:15 +03:00

Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.

This commit is contained in:
Jeremy Allison
2011-05-03 13:10:01 -07:00
parent deba880986
commit 017e0c8d95
14 changed files with 26 additions and 26 deletions

View File

@@ -134,7 +134,7 @@ bool E_deshash(const char *passwd, uint8_t p16[16])
tmpbuf = strupper_talloc(mem_ctx, passwd);
if (tmpbuf == NULL) {
/* Too many callers don't check this result, we need to fill in the buffer with something */
safe_strcpy((char *)dospwd, passwd, sizeof(dospwd)-1);
strlcpy((char *)dospwd, passwd, sizeof(dospwd));
E_P16(dospwd, p16);
return false;
}