summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrf.c b/src/intrf.c
index a2a342d..4e89cbf 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -402,7 +402,7 @@ int wmenuUpdate(WINDOW *window, int y, int x, const struct MenuItem *menuItems,
{
log_critical("\nBUG: %s\n",mi);
}
- if(lenName > itemLength)
+ if(lenName >= itemLength)
{
if( menuType & MENU_BUTTON )
snprintf(buff, sizeof(buff),"[%s]",mi);