diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-11-12 14:12:44 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-11-12 14:12:44 +0100 |
commit | df0edba18eb53cd109b61da22285503419d5f227 (patch) | |
tree | 0cce10a3d15eab5913690fe2378ec1aa5def75e5 | |
parent | 63eae4339a865935b02c8025136f9a9bed83c0b0 (diff) | |
download | rockbox-df0edba.tar.gz rockbox-df0edba.zip |
hwstub: fix horrible bug
It's a wonder it worked, basically any big transfer returned garbage
Change-Id: Ic2b2fc1805423c70db8eac40692ba842c72462ab
-rw-r--r-- | utils/hwstub/lib/hwstub.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hwstub/lib/hwstub.cpp b/utils/hwstub/lib/hwstub.cpp index f8e925a0b8..ba9ecb7f06 100644 --- a/utils/hwstub/lib/hwstub.cpp +++ b/utils/hwstub/lib/hwstub.cpp @@ -414,7 +414,7 @@ error handle::read(uint32_t addr, void *buf, size_t& sz, bool atomic) while(sz > 0) { size_t xfer = std::min(sz, get_buffer_size()); - err = read_dev(addr, buf, xfer, atomic); + err = read_dev(addr, bufp, xfer, atomic); if(err != error::SUCCESS) return err; sz -= xfer; |