diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-24 20:57:05 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-24 20:57:05 +0400 |
commit | 62108fe767966d44e43f4b23094f220dd0d6bf27 (patch) | |
tree | b87a61491189f85f57f387ee99e7844f750a92c1 /src/statfile_sync.c | |
parent | 4536c2547b508cfa575218f6ebc147bf471ba465 (diff) | |
download | rspamd-62108fe767966d44e43f4b23094f220dd0d6bf27.tar.gz rspamd-62108fe767966d44e43f4b23094f220dd0d6bf27.zip |
* Use rspamd_snprintf instead of libc one
Diffstat (limited to 'src/statfile_sync.c')
-rw-r--r-- | src/statfile_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statfile_sync.c b/src/statfile_sync.c index 1e5baeb7d..e2f62aca2 100644 --- a/src/statfile_sync.c +++ b/src/statfile_sync.c @@ -76,7 +76,7 @@ log_next_sync (const char *symbol, time_t delay) tmp = localtime(&t); if (tmp) { - r = snprintf (outstr, sizeof (outstr), "statfile_sync: next sync of %s at ", symbol); + r = rspamd_snprintf (outstr, sizeof (outstr), "statfile_sync: next sync of %s at ", symbol); if ((r = strftime(outstr + r, sizeof(outstr) - r, "%T", tmp)) != 0) { msg_info (outstr); } @@ -175,7 +175,7 @@ sync_read (f_str_t * in, void *arg) /* Skip greeting line and write sync command */ /* Write initial data */ statfile_get_revision (ctx->real_statfile, &rev, &ti); - rev = snprintf (buf, sizeof (buf), "sync %s %ld %ld" CRLF, ctx->st->symbol, (long int)rev, (long int)ti); + rev = rspamd_snprintf (buf, sizeof (buf), "sync %s %l %l" CRLF, ctx->st->symbol, (long int)rev, (long int)ti); ctx->state = SYNC_STATE_READ_LINE; return rspamd_dispatcher_write (ctx->dispatcher, buf, rev, FALSE, FALSE); break; |