summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/fcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/fcp.c b/sys/src/cmd/fcp.c
index 79bbc1258..aacab8466 100644
--- a/sys/src/cmd/fcp.c
+++ b/sys/src/cmd/fcp.c
@@ -204,7 +204,7 @@ worker(int fdf, int fdt, char *from, char *to)
fprint(2, "reading %s at %lld: %r\n", from, o);
_exits("bad");
}
- if(pwrite(fdt, buf, n, o) != n){
+ if(pwrite(fdt, bp, n, o) != n){
fprint(2, "writing %s: %r\n", to);
_exits("bad");
}