Showing the changes to Source/Libraries/TimeSeriesJavaLibrary/src/org (1 of 1 file). Show all
Unified · Split
| @@ -60,7 +60,7 @@ public class InputStreamExtensions · 59 unmodified lines | ||
| 60 | 60 | |
| 61 | 61 | while (readAmount >= 0 && totalReadAmount < length) |
| 62 | 62 | { |
| 63 | − readAmount = stream.read(buffer, index, length - readAmount); | |
| 63 | + readAmount = stream.read(buffer, index, length - totalReadAmount); | |
| 64 | 64 | index += readAmount; |
| 65 | 65 | totalReadAmount += readAmount; |
| 66 | 66 | } |