From 5f4f8d47039fbc366c4d7e34e4870d7d374c2061 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 19 Mar 2009 12:29:57 +0300 Subject: * While printing symbols list on log strip last ',' from logline --- src/protocol.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/protocol.c') 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'; + } } } -- cgit v1.2.3