ref: e0c1af8d424ccd9c03d024c267c95164d08e3948
parent: f0ab0c249f767edac81eb5af4a4de6c653e43d66
author: cinap_lenrek <cinap_lenrek@felloff.net>
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");}
--
⑨