diff options
author | Christian Hesse | 2014-12-19 00:28:34 -0700 |
---|---|---|
committer | Jason A. Donenfeld | 2014-12-23 18:53:03 -0700 |
commit | 17838ec6304198811df97402f11c185f8f0e10bd (patch) | |
tree | bf462dcdb2b974d45c72b8f4fb559dfde1b51027 /ui-repolist.c | |
parent | 10c5680efb02b534108b174c0967d08ae3e46927 (diff) | |
download | cgit-17838ec6304198811df97402f11c185f8f0e10bd.tar cgit-17838ec6304198811df97402f11c185f8f0e10bd.tar.gz cgit-17838ec6304198811df97402f11c185f8f0e10bd.zip |
git: update to v2.2.1
Update to git version v2.2.1, including API changes.
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-repolist.c')
-rw-r--r-- | ui-repolist.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index c2bcce1..49c991f 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -17,16 +17,17 @@ static time_t read_agefile(char *path) time_t result; size_t size; char *buf; - static char buf2[64]; + struct strbuf date_buf = STRBUF_INIT; if (readfile(path, &buf, &size)) return -1; - if (parse_date(buf, buf2, sizeof(buf2)) > 0) - result = strtoul(buf2, NULL, 10); + if (parse_date(buf, &date_buf) == 0) + result = strtoul(date_buf.buf, NULL, 10); else result = 0; free(buf); + strbuf_release(&date_buf); return result; } |