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-df0edba18eb53cd109b61da22285503419d5f227.tar.gz rockbox-df0edba18eb53cd109b61da22285503419d5f227.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) | |||
414 | while(sz > 0) | 414 | while(sz > 0) |
415 | { | 415 | { |
416 | size_t xfer = std::min(sz, get_buffer_size()); | 416 | size_t xfer = std::min(sz, get_buffer_size()); |
417 | err = read_dev(addr, buf, xfer, atomic); | 417 | err = read_dev(addr, bufp, xfer, atomic); |
418 | if(err != error::SUCCESS) | 418 | if(err != error::SUCCESS) |
419 | return err; | 419 | return err; |
420 | sz -= xfer; | 420 | sz -= xfer; |