Who'd have guessed this was broken?

This commit is contained in:
rsc 2004-04-21 06:20:19 +00:00
parent 2c7cc0faaf
commit a29753a17f

View file

@ -105,7 +105,7 @@ atimes(char *ar)
struct ar_hdr h;
long t;
int fd, i;
char buf[BIGBLOCK];
char buf[1024];
char name[sizeof(h.name)+1];
fd = open(ar, OREAD);
@ -126,7 +126,7 @@ atimes(char *ar)
if(name[i] == '/') /* system V bug */
i--;
name[i+1]=0;
sprint(buf, "%s(%s)", ar, h.size);
snprint(buf, sizeof buf, "%s(%s)", ar, name);
symlook(strdup(buf), S_TIME, (void *)t)->value = (void *)t;
t = atol(h.size);
if(t&01) t++;