summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hci/mucurses/slk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/mucurses/slk.c b/src/hci/mucurses/slk.c
index b900c068..169e0120 100644
--- a/src/hci/mucurses/slk.c
+++ b/src/hci/mucurses/slk.c
@@ -359,7 +359,7 @@ int slk_set ( int labnum, const char *label, int fmt ) {
return ERR;
strncpy(slks->fkeys[labnum].label, label,
- sizeof(slks->fkeys[labnum].label));
+ (sizeof(slks->fkeys[labnum].label) - 1));
slks->fkeys[labnum].fmt = fmt;
return OK;