From d90b1a137d9efd51ebd9857c3401f1705c96fb47 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 21 Jan 2026 18:53:55 -0500 Subject: [PATCH] NPR: avoid one snprintf --- src/gui/newPattern.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/newPattern.cpp b/src/gui/newPattern.cpp index 69cc129b1..c7547534c 100644 --- a/src/gui/newPattern.cpp +++ b/src/gui/newPattern.cpp @@ -1306,11 +1306,11 @@ void FurnaceGUI::drawPatternNew() { } // note - snprintf(id,63,"%.31s",noteName(pat->newData[row][DIV_PAT_NOTE])); + const char* idN=noteName(pat->newData[row][DIV_PAT_NOTE]); if (pat->newData[row][DIV_PAT_NOTE]==-1) { - dl->AddText(pos,inactiveColor,id,id+3); + dl->AddText(pos,inactiveColor,idN,idN+3); } else { - dl->AddText(pos,activeColor,id,id+3); + dl->AddText(pos,activeColor,idN,idN+3); } // instrument