Changeset 6325 in ntrip for branches


Ignore:
Timestamp:
Nov 18, 2014, 2:56:48 PM (4 years ago)
Author:
stuerze
Message:

a small condition is added to prevent an illegal array access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.11.0/src/bncmodel.cpp

    r5656 r6325  
    407407  if (h_km > 5.0) h_km = 5.0;
    408408  int    ii   = int(h_km + 1);
    409   double href = ii - 1;
     409  double href = ii - 1; if (ii > 5) ii = 5;
    410410 
    411411  double bCor[6];
Note: See TracChangeset for help on using the changeset viewer.