VirtualBox

Changeset 77262 in vbox


Ignore:
Timestamp:
Feb 11, 2019 1:44:23 PM (6 years ago)
Author:
vboxsync
Message:

Runtime/RTCRest: fixed array index when serializing/deserializing double values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/rest-primary-object-types.cpp

    r76553 r77262  
    983983#endif
    984984        size_t cchValue = strlen(szValue);
    985         while (cchValue > 0 && szValue[-1] == '0')
     985        while (cchValue > 0 && szValue[cchValue - 1] == '0')
    986986            cchValue--;
    987987        szValue[cchValue] = '\0';
     
    10511051#endif
    10521052        size_t cchValue = strlen(szValue);
    1053         while (cchValue > 0 && szValue[-1] == '0')
     1053        while (cchValue > 0 && szValue[cchValue - 1] == '0')
    10541054            cchValue--;
    10551055        szValue[cchValue] = '\0';
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette