Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5022 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Aug 15, 2005, 12:16:53 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: cutting star

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/ini_parser.cc

    r5021 r5022  
    154154        while ((*valueBegin == ' ' || *valueBegin == '\t') && valueBegin <= lineBegin + strlen(lineBegin))
    155155          ++valueBegin;
     156        char* valueEnd = valueBegin + strlen(valueBegin)-1;
     157        while ((*valueEnd == ' ' || *valueEnd == '\t') && valueEnd >= valueBegin)
     158          --valueEnd;
     159        valueEnd[1] = '\0';
    156160        char* nameEnd = ptr-1;
    157161        while ((*nameEnd == ' ' || *nameEnd == '\t' ) && nameEnd >= lineBegin)
Note: See TracChangeset for help on using the changeset viewer.