Bug 201290 - usr.sbin/mixer/mixer.c:243: bad width specifier ?
Summary: usr.sbin/mixer/mixer.c:243: bad width specifier ?
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 16:49 UTC by David Binderman
Modified: 2019-02-07 13:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2015-07-02 16:49:59 UTC
usr.sbin/mixer/mixer.c:243]: (error) Width 7 given in format string (no. 2) is larger than destination buffer 'rstr[5]', use %4s to prevent overflowing it.

  m = sscanf(argv[1], "%7[^:]:%7s", lstr, rstr);
Comment 1 Andriy Voskoboinyk freebsd_committer 2019-02-07 13:34:28 UTC
Fixed in base r317596