ref: ea7bca1829c6ba924599a2c8bc8e0c18404db6a1
parent: 2aa2f9f359a84b25c0a2ed488c4d0319c9ea8c55
author: cinap_lenrek <[email protected]>
date: Tue Jul 14 16:44:34 EDT 2015
fcp: fix wrong write pointer offset when read returns less than DEFB bytes
--- a/sys/src/cmd/fcp.c
+++ b/sys/src/cmd/fcp.c
@@ -204,7 +204,7 @@
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");
}