diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-16 11:27:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-16 11:27:08 +0000 |
commit | f736b24935d66733e9a53798fbc87dbc8aff9fca (patch) | |
tree | b7f865216ca4b40a4a6e4535dfa6677700a27efc /src/util/common_logging.c | |
parent | c5784d2c94adcf1fe80e88c9ab1c152ce2fcbe95 (diff) | |
download | gnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.tar.gz gnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.zip |
-fixing #2546
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r-- | src/util/common_logging.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 873420460..fbc0de50c 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c | |||
@@ -798,7 +798,7 @@ flush_bulk (const char *datestr) | |||
798 | char msg[DATE_STR_SIZE + BULK_TRACK_SIZE + 256]; | 798 | char msg[DATE_STR_SIZE + BULK_TRACK_SIZE + 256]; |
799 | int rev; | 799 | int rev; |
800 | char *last; | 800 | char *last; |
801 | char *ft; | 801 | const char *ft; |
802 | 802 | ||
803 | if ((last_bulk_time.abs_value == 0) || (last_bulk_repeat == 0)) | 803 | if ((last_bulk_time.abs_value == 0) || (last_bulk_repeat == 0)) |
804 | return; | 804 | return; |
@@ -814,11 +814,10 @@ flush_bulk (const char *datestr) | |||
814 | last[0] = '\0'; | 814 | last[0] = '\0'; |
815 | } | 815 | } |
816 | ft = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration | 816 | ft = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration |
817 | (last_bulk_time)); | 817 | (last_bulk_time), GNUNET_YES); |
818 | snprintf (msg, sizeof (msg), | 818 | snprintf (msg, sizeof (msg), |
819 | _("Message `%.*s' repeated %u times in the last %s\n"), | 819 | _("Message `%.*s' repeated %u times in the last %s\n"), |
820 | BULK_TRACK_SIZE, last_bulk, last_bulk_repeat, ft); | 820 | BULK_TRACK_SIZE, last_bulk, last_bulk_repeat, ft); |
821 | GNUNET_free (ft); | ||
822 | if (rev == 1) | 821 | if (rev == 1) |
823 | last[0] = '\n'; | 822 | last[0] = '\n'; |
824 | output_message (last_bulk_kind, last_bulk_comp, datestr, msg); | 823 | output_message (last_bulk_kind, last_bulk_comp, datestr, msg); |