From: Vsevolod Stakhov Date: Thu, 19 Mar 2009 09:29:57 +0000 (+0300) Subject: * While printing symbols list on log strip last ',' from logline X-Git-Tag: 0.2.7~249 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f4f8d47039fbc366c4d7e34e4870d7d374c2061;p=thirdparty%2Frspamd.git * While printing symbols list on log strip last ',' from logline --- diff --git a/src/protocol.c b/src/protocol.c index f65d0b1a5a..706040bc69 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'; + } } }