fix out-of-bounds array access in export report.
cppcheck reports "gtk2_ardour/export_report.cc:260: error: Array 'y0[4]' accessed at index 4, which is out of bounds.", which seems indeed to be the case.
This commit is contained in:
parent
7840bb1b14
commit
8df6101fd3
@ -248,7 +248,7 @@ ExportReport::init (const AnalysisResults & ar, bool with_file)
|
||||
mnw = (m_l - /*hist-width*/ 540 - /*box spacing*/ 8 + /*peak-width*/ 800 + m_r) / 2;
|
||||
const int nw2 = mnw / 2; // nums, horizontal center
|
||||
|
||||
int y0[4];
|
||||
int y0[6];
|
||||
if (p->normalized) {
|
||||
y0[0] = (hh - ht) * .5;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user