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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80277

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