Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5209 in orxonox.OLD for trunk/src/lib/util/substring.cc


Ignore:
Timestamp:
Sep 20, 2005, 11:22:46 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: valgrind's second fruits….. the char-arrays
some time in the near future i will hopefully be faster in interpreting this WALLgrind… but it is great, i can tell you (or at least anyone that reads this :))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/substring.cc

    r5200 r5209  
    7070    }
    7171
     72    l = strlen( offset);
    7273    strings[i] = new char[l + 1];
    73     l = strlen( offset);
    7474    strncpy( strings[i], offset, l);
    7575    strings[i][l] = '\0';
Note: See TracChangeset for help on using the changeset viewer.