diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-02 11:33:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-02 11:33:53 +0200 |
commit | 225ddf0a2f704547e49ac3c3878b9015c915a02a (patch) | |
tree | af04acdb51b6cd54cba479ee3650c246f50a1280 /src/util/strings.c | |
parent | a4653a7a0f5f3c5e2374aa4dc104208b5f758793 (diff) | |
download | gnunet-225ddf0a2f704547e49ac3c3878b9015c915a02a.tar.gz gnunet-225ddf0a2f704547e49ac3c3878b9015c915a02a.zip |
fix #6146
Diffstat (limited to 'src/util/strings.c')
-rw-r--r-- | src/util/strings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/strings.c b/src/util/strings.c index ac9805cdd..f32c3ea61 100644 --- a/src/util/strings.c +++ b/src/util/strings.c | |||
@@ -690,7 +690,7 @@ const char * | |||
690 | GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta, | 690 | GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta, |
691 | int do_round) | 691 | int do_round) |
692 | { | 692 | { |
693 | static char buf[128]; | 693 | static GNUNET_THREAD_LOCAL char buf[128]; |
694 | const char *unit = _ (/* time unit */ "µs"); | 694 | const char *unit = _ (/* time unit */ "µs"); |
695 | uint64_t dval = delta.rel_value_us; | 695 | uint64_t dval = delta.rel_value_us; |
696 | 696 | ||
@@ -744,7 +744,7 @@ GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta, | |||
744 | const char * | 744 | const char * |
745 | GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t) | 745 | GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t) |
746 | { | 746 | { |
747 | static char buf[255]; | 747 | static GNUNET_THREAD_LOCAL char buf[255]; |
748 | time_t tt; | 748 | time_t tt; |
749 | struct tm *tp; | 749 | struct tm *tp; |
750 | 750 | ||