fix possible buffer overflow
compiler warning, very unlikely to hit in production
This commit is contained in:
parent
7d0a9179b9
commit
fc3f207327
1 changed files with 4 additions and 4 deletions
|
@ -347,12 +347,12 @@ void PlayPanel::updatePosLabel(int utick)
|
|||
// this prevents jitter as width of time grows and shrinks
|
||||
// alternative would be to use a monospaced font and a
|
||||
// single label
|
||||
|
||||
char barBuffer[8];
|
||||
|
||||
char barBuffer[12];
|
||||
sprintf(barBuffer, "%d", bar+1);// sprintf(barBuffer, "%03d", bar+1);
|
||||
measureLabel->setText(QString(barBuffer));
|
||||
|
||||
char beatBuffer[8];
|
||||
|
||||
char beatBuffer[12];
|
||||
sprintf(beatBuffer, "%02d", beat+1);
|
||||
beatLabel->setText(QString(beatBuffer));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue