From: Jaroslav Kysela Date: Mon, 19 Feb 2018 15:55:36 +0000 (+0100) Subject: lang_str: fix the wrong condition in _lang_str_add(), issue #4955 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acad85f54748b32528c6ffb81e58e8ec6474aa5e;p=thirdparty%2Ftvheadend.git lang_str: fix the wrong condition in _lang_str_add(), issue #4955 --- diff --git a/src/lang_str.c b/src/lang_str.c index 440e863b7..ce00a3a56 100644 --- a/src/lang_str.c +++ b/src/lang_str.c @@ -149,7 +149,7 @@ static int _lang_str_add /* Update */ } else if (cmd == LANG_STR_UPDATE && strcmp(str, e->str)) { - if (strlen(e->str) <= strlen(str)) { + if (strlen(e->str) >= strlen(str)) { strcpy(e->str, str); save = 1; } else {