Replace strcpy() with strlcpy()
The risk of an overrun here is very low but check the length, JIC. CID: 1019039
This commit is contained in:
parent
1a4161a15d
commit
78a452c36e
@ -181,7 +181,7 @@ fstabscan(void)
|
||||
if (cp != NULL)
|
||||
_fs_fstab.fs_passno = atoi(cp);
|
||||
}
|
||||
strcpy(subline, _fs_fstab.fs_mntops);
|
||||
(void)strlcpy(subline, _fs_fstab.fs_mntops, sizeof(subline));
|
||||
p = subline;
|
||||
for (typexx = 0, cp = strsep(&p, ","); cp;
|
||||
cp = strsep(&p, ",")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user