Bug 201290

Summary: usr.sbin/mixer/mixer.c:243: bad width specifier ?
Product: Base System Reporter: David Binderman <dcb314>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: avos
Priority: ---    
Version: 10.1-RELEASE   
Hardware: Any   
OS: Any   

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 freebsd_triage 2019-02-07 13:34:28 UTC
Fixed in base r317596