summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tagtree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index a1c5640b74..9451387a66 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -462,6 +462,12 @@ static int get_format_str(struct display_format *fmt)
462 462
463static int add_format(const char *buf) 463static int add_format(const char *buf)
464{ 464{
465 if (format_count >= TAGMENU_MAX_FMTS)
466 {
467 logf("too many formats");
468 return -1;
469 }
470
465 strp = buf; 471 strp = buf;
466 472
467 if (formats[format_count] == NULL) 473 if (formats[format_count] == NULL)