From c62e4aa761e7fd35e4861ff38465664462ecfc9f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Sep 2015 16:14:11 +0200 Subject: [PATCH] (menu_animation.c) cast str_len to size_t --- menu/menu_animation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu/menu_animation.c b/menu/menu_animation.c index 456207313b..70a21bcd52 100644 --- a/menu/menu_animation.c +++ b/menu/menu_animation.c @@ -623,7 +623,7 @@ void menu_animation_ticker_str(char *s, size_t len, uint64_t idx, int str_len = strlen(str); int offset = 0; - if (str_len <= len) + if ((size_t)str_len <= len) { strlcpy(s, str, len + 1); return;