]> git.scottworley.com Git - tl-append/blobdiff - common.c
Fix memory leak
[tl-append] / common.c
index 747111beda28fd79d89060ba7aa6959e5bc6f423..88e7b73d0e5d893104c76edf108526d0f79f88de 100644 (file)
--- a/common.c
+++ b/common.c
@@ -17,7 +17,7 @@ void die_err(const char *message) {
   exit(1);
 }
 
-const char *encode_time(time_t t) {
+char *encode_time(time_t t) {
   struct tm tm;
   localtime_r(&t, &tm);
   const size_t size = 20;