summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-17 11:32:02 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-24 15:31:05 +0100
commit24c208336c795adc1e111b03e86526c2cfde7a61 (patch)
tree0499e6b4030375b3cc89c0d40c30680819e9d0ae /utils
parent06c5e5f4c1e1938aa38763d6e5661ba31e8f2ad4 (diff)
downloadrockbox-24c208336c795adc1e111b03e86526c2cfde7a61.tar.gz
rockbox-24c208336c795adc1e111b03e86526c2cfde7a61.tar.bz2
rockbox-24c208336c795adc1e111b03e86526c2cfde7a61.zip
hwstub: fix library sending wrong data on long transfers
Change-Id: I886b8dc28e306f631389dbed41451eb086fea4fc
Diffstat (limited to 'utils')
-rw-r--r--utils/hwstub/lib/hwstub.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hwstub/lib/hwstub.cpp b/utils/hwstub/lib/hwstub.cpp
index 5e708c3bb8..f8e925a0b8 100644
--- a/utils/hwstub/lib/hwstub.cpp
+++ b/utils/hwstub/lib/hwstub.cpp
@@ -444,7 +444,7 @@ error handle::write(uint32_t addr, const void *buf, size_t& sz, bool atomic)
while(sz > 0)
{
size_t xfer = std::min(sz, get_buffer_size());
- err = write_dev(addr, buf, xfer, atomic);
+ err = write_dev(addr, bufp, xfer, atomic);
if(err != error::SUCCESS)
{
sz = cnt;