Skip to content

Commit

Permalink
Merge pull request aaronstatic#6 from worktycho/patch-1
Browse files Browse the repository at this point in the history
Provide space for terminating nulls with max length chord names
  • Loading branch information
aaronstatic authored May 23, 2021
2 parents 62809ce + 66c2a18 commit 19d2b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ChordCV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ struct ChordCVWidget : ModuleWidget {
struct ChordDisplayWidget : TransparentWidget {
ChordCV* module;
std::shared_ptr<Font> font;
char text[9];
char text[10];

ChordDisplayWidget(Vec _pos, Vec _size, ChordCV* _module) {
box.size = _size;
Expand All @@ -248,7 +248,7 @@ struct ChordCVWidget : ModuleWidget {

int note = module->root_semi;
int type = module->chord_type;
char inv[3];
char inv[4];
if(module->inverted){
sprintf(inv,"/%s",noteNames[module->bass_note]);
}
Expand Down

0 comments on commit 19d2b05

Please sign in to comment.