Commit 5281869f authored by Adam Langley's avatar Adam Langley

gopack: convert long to time_t before taking a pointer.

Fixes #40.

R=rsc, r1
CC=golang-dev
https://golang.org/cl/154057
parent 7f486064
......@@ -1215,11 +1215,13 @@ void
longt(Armember *bp)
{
char *cp;
time_t date;
pmode(strtoul(bp->hdr.mode, 0, 8));
Bprint(&bout, "%3ld/%1ld", strtol(bp->hdr.uid, 0, 0), strtol(bp->hdr.gid, 0, 0));
Bprint(&bout, "%7ld", bp->size);
cp = ctime(&bp->date);
date = bp->date;
cp = ctime(&date);
Bprint(&bout, " %-12.12s %-4.4s ", cp+4, cp+24);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment