mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Fix potential buffer overflow when playing 10^18 beats :)
This commit is contained in:
parent
2ba290e904
commit
9dafed2d76
1 changed files with 1 additions and 1 deletions
|
|
@ -3298,7 +3298,7 @@ MidiView::update_resizing (NoteBase* primary, bool at_front, double delta_x, boo
|
|||
*/
|
||||
len = std::max (Temporal::Beats (0, 128), len);
|
||||
|
||||
char buf[16];
|
||||
char buf[24];
|
||||
/* represent as float frac to help out the user */
|
||||
snprintf (buf, sizeof (buf), "%.3f beats", len.get_beats() + (len.get_ticks()/(double)Temporal::ticks_per_beat));
|
||||
show_verbose_cursor (buf, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue