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 (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
60 60
61 while (readAmount >= 0 && totalReadAmount < length)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 index += readAmount;64 index += readAmount;
65 totalReadAmount += readAmount;65 totalReadAmount += readAmount;
66 }66 }

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