aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-09-16 11:27:08 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-09-16 11:27:08 +0000
commitfb5e0d85d370d5db69b2fd1caf4a342916943142 (patch)
treeb7f865216ca4b40a4a6e4535dfa6677700a27efc /src/util/common_logging.c
parent6bb5515d5ad101a565179762947477d1e8269577 (diff)
-fixing #2546
git-svn-id: https://gnunet.org/svn/gnunet@23833 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r--src/util/common_logging.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index 8734204606..fbc0de50c9 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -798,7 +798,7 @@ flush_bulk (const char *datestr)
char msg[DATE_STR_SIZE + BULK_TRACK_SIZE + 256];
int rev;
char *last;
- char *ft;
+ const char *ft;
if ((last_bulk_time.abs_value == 0) || (last_bulk_repeat == 0))
return;
@@ -814,11 +814,10 @@ flush_bulk (const char *datestr)
last[0] = '\0';
}
ft = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration
- (last_bulk_time));
+ (last_bulk_time), GNUNET_YES);
snprintf (msg, sizeof (msg),
_("Message `%.*s' repeated %u times in the last %s\n"),
BULK_TRACK_SIZE, last_bulk, last_bulk_repeat, ft);
- GNUNET_free (ft);
if (rev == 1)
last[0] = '\n';
output_message (last_bulk_kind, last_bulk_comp, datestr, msg);