Coverity fixes
[claws.git] / src / matcher_parser_lex.l
index bf36c58c80e0ddc9a03336f47a24058c31645714..209e50373a714358821ffb5738bdb2ac0fe524b6 100644 (file)
@@ -90,7 +90,7 @@ void matcher_parser_init(void)
                if (!g_utf8_validate(string_buf, -1, NULL)) {
                        gchar *tmp = conv_codeset_strdup(string_buf, conv_get_locale_charset_str(), CS_INTERNAL);
                        if (tmp) {
                if (!g_utf8_validate(string_buf, -1, NULL)) {
                        gchar *tmp = conv_codeset_strdup(string_buf, conv_get_locale_charset_str(), CS_INTERNAL);
                        if (tmp) {
-                               strcpy(string_buf, tmp);
+                               g_strlcpy(string_buf, tmp, sizeof(string_buf));
                                g_free(tmp);
                        }
                }
                                g_free(tmp);
                        }
                }