diff options
author | Michael Forney <mforney@mforney.org> | 2022-03-18 23:45:43 +0000 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-03-18 23:45:43 +0000 |
commit | 638b82129e750940b4d886c17c7c0ba9d8dbceac (patch) | |
tree | b183f4f35f656f9e1f282ee62c673670735f945b /sys/src/cmd/git | |
parent | 02d1725d710b1f786f75c4f3cadc14cff37d5772 (diff) |
git/fetch: use read for reading packfiles instead of readn
Diffstat (limited to 'sys/src/cmd/git')
-rw-r--r-- | sys/src/cmd/git/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/git/fetch.c b/sys/src/cmd/git/fetch.c index 5951cfaf7..d162ac7da 100644 --- a/sys/src/cmd/git/fetch.c +++ b/sys/src/cmd/git/fetch.c @@ -279,7 +279,7 @@ fetchpack(Conn *c) fprint(2, "fetching...\n"); packsz = 0; while(1){ - n = readn(c->rfd, buf, sizeof buf); + n = read(c->rfd, buf, sizeof buf); if(n == 0) break; if(n == -1 || write(pfd, buf, n) != n) |