diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-11-02 03:31:55 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-11-02 03:31:55 +0100 |
commit | 5cb6be9ce3bb53909879d6911cc2411f8458ed10 (patch) | |
tree | b844008fdfd660656b2c67b4b575fb769c1fed71 /sys/src/cmd/hgfs/info.c | |
parent | ce59d96ee34905b58d39fa6e7defdf75220032ea (diff) |
hgfs: fix metaheader offset for log
Diffstat (limited to 'sys/src/cmd/hgfs/info.c')
-rw-r--r-- | sys/src/cmd/hgfs/info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/hgfs/info.c b/sys/src/cmd/hgfs/info.c index 2f0d01075..6a17a8fcc 100644 --- a/sys/src/cmd/hgfs/info.c +++ b/sys/src/cmd/hgfs/info.c @@ -17,14 +17,15 @@ loadrevinfo(Revlog *changelog, int rev) seek(fd, 0, 2); write(fd, "\n", 1); - seek(fd, 0, 0); + + off = fmetaheader(fd); + seek(fd, off, 0); ri = malloc(sizeof(*ri)); memset(ri, 0, sizeof(*ri)); memmove(ri->chash, changelog->map[rev].hash, HASHSZ); - off = 0; line = 0; inmsg = 0; p = buf; |