diff options
author | rsc <devnull@localhost> | 2004-04-21 06:20:19 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-21 06:20:19 +0000 |
commit | a29753a17ffd2be43fbadb9f1851d1aacf771d44 (patch) | |
tree | 6b61ca33a85d1af43894f8f8839863660fec1ce9 /src/cmd/mk | |
parent | 2c7cc0faaf79742d021f72e103b4d828a581df4e (diff) | |
download | plan9port-a29753a17ffd2be43fbadb9f1851d1aacf771d44.tar.gz plan9port-a29753a17ffd2be43fbadb9f1851d1aacf771d44.tar.bz2 plan9port-a29753a17ffd2be43fbadb9f1851d1aacf771d44.zip |
Who'd have guessed this was broken?
Diffstat (limited to 'src/cmd/mk')
-rw-r--r-- | src/cmd/mk/archive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/mk/archive.c b/src/cmd/mk/archive.c index 9ba7a12d..8bb80bbf 100644 --- a/src/cmd/mk/archive.c +++ b/src/cmd/mk/archive.c @@ -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++; |