diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-19 12:29:57 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-19 12:29:57 +0300 |
commit | 5f4f8d47039fbc366c4d7e34e4870d7d374c2061 (patch) | |
tree | ea07563da35db39438485e8a9e384016a42e7e8a /src/protocol.c | |
parent | 6088008d6c307a553b896eacee60a7ae69fda9dd (diff) | |
download | rspamd-5f4f8d47039fbc366c4d7e34e4870d7d374c2061.tar.gz rspamd-5f4f8d47039fbc366c4d7e34e4870d7d374c2061.zip |
* While printing symbols list on log strip last ',' from logline
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index f65d0b1a5..706040bc6 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -430,6 +430,10 @@ show_metric_symbols (struct metric_result *metric_res, struct metric_callback_da } else { g_hash_table_foreach (metric_res->symbols, metric_symbols_callback, cd); + /* Remove last , from log buf */ + if (cd->log_buf[cd->log_offset - 1] == ',') { + cd->log_buf[--cd->log_offset] = '\0'; + } } } |