Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5215 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Sep 22, 2005, 4:02:08 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some more fixing of the Errors reported by valgrind
removed some stuff in patrick's collision-detection.
also changed Vector* to Vector in Rectangle (patrick tell me, if this is not ok - but i doubt it :))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_buffer.cc

    r5214 r5215  
    3737  this->lineCount = 0;
    3838  this->keepBufferArray[0] = '\0';
     39  this->bufferArray[0] = '\0';
    3940  this->keepBuffer = false;
    4041  this->buffer = new tList<char>;
     
    101102  this->buffer = new tList<char>;
    102103  this->bufferIterator = this->buffer->getIterator();
     104
    103105}
    104106
     
    165167    {
    166168//       newLineEnd = newLineBegin + strlen(newLineBegin);
    167       strcpy(this->keepBufferArray, newLineBegin);
     169      unsigned int len = strlen(newLineBegin);
     170      strncpy(this->keepBufferArray, newLineBegin, len);
     171      this->keepBufferArray[len] = '\0';
    168172      this->keepBuffer = true;
    169173      break;
Note: See TracChangeset for help on using the changeset viewer.