1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

mixer(8): Prevent possible sscanf() overflow.

Fix %s buffer sizes in sscanf().

Obtained from:	DragonflyBSD (git dab952e2)
MFC after:	5 days
This commit is contained in:
Pedro F. Giffuni 2017-04-29 19:12:44 +00:00
parent 0558617b42
commit 2b223a01ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317596

View File

@ -102,7 +102,7 @@ int
main(int argc, char *argv[])
{
char mixer[PATH_MAX] = "/dev/mixer";
char lstr[5], rstr[5];
char lstr[8], rstr[8];
char *name, *eptr;
int devmask = 0, recmask = 0, recsrc = 0, orecsrc;
int dusage = 0, drecsrc = 0, sflag = 0, Sflag = 0;