diff options
author | pfg <pfg@FreeBSD.org> | 2017-05-04 14:55:07 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2017-05-04 14:55:07 +0000 |
commit | 1cf67fdbebd5120e52fdd99839e5811ce1aedb3b (patch) | |
tree | e0894e65cc0e3ac17efc385430f991bcb3cd4ec5 /usr.sbin/mixer | |
parent | 78a86ecf90837d764bb6bed7785aea03ded2c62e (diff) | |
download | FreeBSD-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.c | 2 |
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; |