Changeset 478 for trunk


Ignore:
Timestamp:
Jul 10, 2006, 1:18:50 PM (18 years ago)
Author:
nkissebe
Message:

prevent buffer underrun in RpUnits::grabUnitString()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpUnits.cc

    r400 r478  
    131131    int idx = inStr.length() - 1;
    132132
    133     while (isalpha(inStr[idx])) {
     133    while ((idx >= 0) && isalpha(inStr[idx])) {
    134134        idx--;
    135135    }
Note: See TracChangeset for help on using the changeset viewer.