aboutsummaryrefslogtreecommitdiff
path: root/src/util/strings.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-02 11:33:53 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-02 11:33:53 +0200
commit225ddf0a2f704547e49ac3c3878b9015c915a02a (patch)
treeaf04acdb51b6cd54cba479ee3650c246f50a1280 /src/util/strings.c
parenta4653a7a0f5f3c5e2374aa4dc104208b5f758793 (diff)
downloadgnunet-225ddf0a2f704547e49ac3c3878b9015c915a02a.tar.gz
gnunet-225ddf0a2f704547e49ac3c3878b9015c915a02a.zip
fix #6146
Diffstat (limited to 'src/util/strings.c')
-rw-r--r--src/util/strings.c4
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 *
690GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta, 690GNUNET_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,
744const char * 744const char *
745GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t) 745GNUNET_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