diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-16 09:00:34 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-16 09:00:34 +0000 |
commit | 441fdff85f0b2887e2e7206101822da822193b3c (patch) | |
tree | f62b497fd14626e8c14cb7876500ab9d6fb8e7f5 /libsylph/filter.c | |
parent | 1d0b765f618f4791d75a1226756d4568ca35be3c (diff) |
libsylph: use itos_buf() because itos() is not thread-safe.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2286 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/filter.c')
-rw-r--r-- | libsylph/filter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsylph/filter.c b/libsylph/filter.c index e61b5095..182fbb27 100644 --- a/libsylph/filter.c +++ b/libsylph/filter.c @@ -822,6 +822,7 @@ void filter_write_file(GSList *list, const gchar *file) GSList *cur_cond; GSList *cur_action; gchar match_type[16]; + gchar nstr[16]; fputs(" <rule name=\"", pfile->fp); xml_file_put_escape_str(pfile->fp, rule->name); @@ -890,13 +891,13 @@ void filter_write_file(GSList *list, const gchar *file) NODE_NEW("command-test", cond->str_value); break; case FLT_COND_SIZE_GREATER: - NODE_NEW("size", itos(cond->int_value)); + NODE_NEW("size", itos_buf(nstr, cond->int_value)); ADD_ATTR("type", FLT_IS_NOT_MATCH(cond->match_flag) ? "lt" : "gt"); break; case FLT_COND_AGE_GREATER: - NODE_NEW("age", itos(cond->int_value)); + NODE_NEW("age", itos_buf(nstr, cond->int_value)); ADD_ATTR("type", FLT_IS_NOT_MATCH(cond->match_flag) ? "lt" : "gt"); @@ -926,7 +927,7 @@ void filter_write_file(GSList *list, const gchar *file) ? "is-not" : "is"); break; case FLT_COND_ACCOUNT: - NODE_NEW("account-id", itos(cond->int_value)); + NODE_NEW("account-id", itos_buf(nstr, cond->int_value)); break; default: break; |