summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mixer
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2017-05-04 14:55:07 +0000
committerpfg <pfg@FreeBSD.org>2017-05-04 14:55:07 +0000
commit1cf67fdbebd5120e52fdd99839e5811ce1aedb3b (patch)
treee0894e65cc0e3ac17efc385430f991bcb3cd4ec5 /usr.sbin/mixer
parent78a86ecf90837d764bb6bed7785aea03ded2c62e (diff)
downloadFreeBSD-src-1cf67fdbebd5120e52fdd99839e5811ce1aedb3b.zip
FreeBSD-src-1cf67fdbebd5120e52fdd99839e5811ce1aedb3b.tar.gz
MFC r317596:
mixer(8): Prevent possible sscanf() overflow. Fix %s buffer sizes in sscanf(). Obtained from: DragonflyBSD (git dab952e2)
Diffstat (limited to 'usr.sbin/mixer')
-rw-r--r--usr.sbin/mixer/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c
index 49b57d8..f1e9fea 100644
--- a/usr.sbin/mixer/mixer.c
+++ b/usr.sbin/mixer/mixer.c
@@ -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;
OpenPOWER on IntegriCloud