aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-10-26 15:08:22 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-10-26 15:08:22 +0000
commit3022e99b38cec783bb84299d4f9707dc131f9531 (patch)
tree66e1805c242fac6458b7284a3530ad2ed38bd652
parent7a741b2fa8c96076f8b05a2d08e4b6b3ba78360b (diff)
downloadgnunet-3022e99b38cec783bb84299d4f9707dc131f9531.tar.gz
gnunet-3022e99b38cec783bb84299d4f9707dc131f9531.zip
memory leak: is const
-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 d3e89b3a8..08d23e5ad 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -688,11 +688,11 @@ GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t)
688 struct tm *tp; 688 struct tm *tp;
689 689
690 if (t.abs_value == GNUNET_TIME_UNIT_FOREVER_ABS.abs_value) 690 if (t.abs_value == GNUNET_TIME_UNIT_FOREVER_ABS.abs_value)
691 return GNUNET_strdup (_("end of time")); 691 return _("end of time");
692 tt = t.abs_value / 1000; 692 tt = t.abs_value / 1000;
693 tp = gmtime (&tt); 693 tp = gmtime (&tt);
694 strftime (buf, sizeof (buf), "%a %b %d %H:%M:%S %Y", tp); 694 strftime (buf, sizeof (buf), "%a %b %d %H:%M:%S %Y", tp);
695 return GNUNET_strdup (buf); 695 return buf;
696} 696}
697 697
698 698