sprintf -> snprintf

Obtained from:	OpenBSD
MFC After:	1 week
This commit is contained in:
Kris Kennaway 2001-07-24 11:40:18 +00:00
parent 745b20f712
commit 55fd28c86b

View File

@ -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;
}