sprintf -> snprintf
Obtained from: OpenBSD MFC After: 1 week
This commit is contained in:
parent
745b20f712
commit
55fd28c86b
@ -210,7 +210,8 @@ main(argc, argv)
|
||||
if (*special != '/') {
|
||||
if (*special == 'r')
|
||||
special++;
|
||||
(void)sprintf(device, "%s/%s", _PATH_DEV, special);
|
||||
(void)snprintf(device, sizeof(device), "%s/%s",
|
||||
_PATH_DEV, special);
|
||||
special = device;
|
||||
goto again;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user