aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-06-24 13:48:29 +0000
committerlloyd <[email protected]>2009-06-24 13:48:29 +0000
commitd7e38c44e851d1ffc8b7c4181eded8f8c3291cb7 (patch)
treee643a396b4e581b1ae3612c4b40960a2612d6511 /src
parentb08f90ab297f1050d8a665a5dba84cdf3e39e738 (diff)
DataSource::discard_next did not actually return the number of discarded
bytes. Bug noted by Falko Strenzke, fix by M. Braun. (bug id 31)
Diffstat (limited to 'src')
-rw-r--r--src/utils/data_src.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/data_src.cpp b/src/utils/data_src.cpp
index 4164a6dd3..e6387c4ba 100644
--- a/src/utils/data_src.cpp
+++ b/src/utils/data_src.cpp
@@ -38,7 +38,7 @@ u32bit DataSource::discard_next(u32bit n)
u32bit discarded = 0;
byte dummy;
for(u32bit j = 0; j != n; ++j)
- discarded = read_byte(dummy);
+ discarded += read_byte(dummy);
return discarded;
}