mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
strcpy => strlcpy
Reported by: Coverity CID: 1352771 MFC after: 3 weeks Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
50bc66f437
commit
5cbe126a6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318141
@ -192,7 +192,8 @@ int main(int argc, char **argv)
|
||||
/* Not reached */
|
||||
}
|
||||
|
||||
strcpy(hdr.magic, cfs.handler->magic);
|
||||
assert(strlcpy(hdr.magic, cfs.handler->magic, sizeof(hdr.magic))
|
||||
< sizeof(hdr.magic));
|
||||
|
||||
if (cfs.en_dedup != 0) {
|
||||
hdr.magic[CLOOP_OFS_VERSN] = CLOOP_MAJVER_3;
|
||||
|
Loading…
Reference in New Issue
Block a user