]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
lang_str: fix the wrong condition in _lang_str_add(), issue #4955
authorJaroslav Kysela <perex@perex.cz>
Mon, 19 Feb 2018 15:55:36 +0000 (16:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Feb 2018 15:55:36 +0000 (16:55 +0100)
src/lang_str.c

index 440e863b71ada1495534d41b6e0de84689383973..ce00a3a56143642ce617219488acd78090f0f4dc 100644 (file)
@@ -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 {