From c834b7825e9f52095d6db6fcfdb8ef535a058c07 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 25 Feb 2016 00:42:40 +0100 Subject: [PATCH] Have to use PATH_MAX_LENGTH in menu_animation_ticker_str --- menu/menu_animation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/menu/menu_animation.c b/menu/menu_animation.c index ce90ffc69b..9120c6e1ea 100644 --- a/menu/menu_animation.c +++ b/menu/menu_animation.c @@ -655,20 +655,20 @@ void menu_animation_ticker_str(char *s, size_t len, uint64_t idx, if ((size_t)str_len <= len) { - utf8cpy(s, PATH_MAX, str, len); + utf8cpy(s, PATH_MAX_LENGTH, str, len); return; } if (!selected) { - utf8cpy(s, PATH_MAX, str, len-3); - strlcat(s, "...", PATH_MAX); + utf8cpy(s, PATH_MAX_LENGTH, str, len-3); + strlcat(s, "...", PATH_MAX_LENGTH); return; } menu_animation_ticker_generic(idx, len, &offset, &str_len); - utf8cpy(s, PATH_MAX, utf8skip(str, offset), str_len); + utf8cpy(s, PATH_MAX_LENGTH, utf8skip(str, offset), str_len); anim->is_active = true; }