diff options
author | June McEnroe <june@causal.agency> | 2021-06-08 14:30:12 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-06-08 14:34:33 -0400 |
commit | d7bd11e9b326caad68b88ae5804b7b97c9282c16 (patch) | |
tree | 14b07a9e9865abc4c57513189e31af0afb6358fa /www/git.causal.agency/cgit/cache.c | |
parent | Fetch git .tar.gz for compatibility (diff) | |
parent | Squashed 'www/git.causal.agency/cgit/' changes from 55fa25ad..5258c297 (diff) | |
download | src-d7bd11e9b326caad68b88ae5804b7b97c9282c16.tar.gz src-d7bd11e9b326caad68b88ae5804b7b97c9282c16.zip |
Merge commit 'f46c4521d761a0b9909e17ef29065c0aa09c7ab7'
Diffstat (limited to '')
-rw-r--r-- | www/git.causal.agency/cgit/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/www/git.causal.agency/cgit/cache.c b/www/git.causal.agency/cgit/cache.c index 580c0e80..578b73b0 100644 --- a/www/git.causal.agency/cgit/cache.c +++ b/www/git.causal.agency/cgit/cache.c @@ -408,12 +408,12 @@ int cache_process(int size, const char *path, const char *key, int ttl, static char *sprintftime(const char *format, time_t time) { static char buf[64]; - struct tm *tm; + struct tm tm; if (!time) return NULL; - tm = gmtime(&time); - strftime(buf, sizeof(buf)-1, format, tm); + gmtime_r(&time, &tm); + strftime(buf, sizeof(buf)-1, format, &tm); return buf; } |