summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui_act.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui_act.c b/src/ui_act.c
index 08cd6e2..6bdecf4 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -428,6 +428,11 @@ BarUiActCallback(BarUiActPrintUpcoming) {
static void BarUiActQuickmixCallback (BarApp_t *app, char *buf) {
PianoStation_t *curStation = app->ph.stations;
+ /* do nothing if buf is empty/contains more than one character */
+ if (buf[0] == '\0' || buf[1] != '\0') {
+ return;
+ }
+
switch (*buf) {
case 't':
/* toggle */