projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Coverity fixes
[claws.git]
/
src
/
matcher_parser_lex.l
diff --git
a/src/matcher_parser_lex.l
b/src/matcher_parser_lex.l
index bf36c58c80e0ddc9a03336f47a24058c31645714..209e50373a714358821ffb5738bdb2ac0fe524b6 100644
(file)
--- a/
src/matcher_parser_lex.l
+++ b/
src/matcher_parser_lex.l
@@
-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) {
-
strcpy(string_buf, tmp
);
+
g_strlcpy(string_buf, tmp, sizeof(string_buf)
);
g_free(tmp);
}
}