Closed cbuahin closed 1 year ago
@cbuahin I agree that it's a bug. SMO_getSystemSeries is not under any unit test https://github.com/USEPA/Stormwater-Management-Model/blob/develop/tests/outfile/test_output.cpp.
@cbuahin isn't it just a simple change here? most of the other functions have that implementation
for (k = 0; k < len; k++)
That would seem to be the solution. Yeah simple fix. The length variable is meant to be an output.
There appears to be a bug in the SWMM output file reader here. Shouldn't the length pointer be dereferenced before being used in the loop? @michaeltryby, if you can confirm, I will make a PR.