History

Fixed a bug that Stephen found. Was causing a index out of bounds exception.

jadamcrain committed 14 years ago

Commit 03d476d1 parent a8b67551 file · +1 −1Browse files

Showing the changes to Source/Libraries/TimeSeriesJavaLibrary/src (1 of 1 file). Show all

Unified · Split

Source/Libraries/TimeSeriesJavaLibrary/src/org/gpa/gsf/timeseries/util/InputStreamExtensions.java+1−1
@@ -60,7 +60,7 @@ public class InputStreamExtensions · 59 unmodified lines
6060
6161 while (readAmount >= 0 && totalReadAmount < length)
6262 {
63− readAmount = stream.read(buffer, index, length - readAmount);
63+ readAmount = stream.read(buffer, index, length - totalReadAmount);
6464 index += readAmount;
6565 totalReadAmount += readAmount;
6666 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t