Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3116 in orxonox.OLD


Ignore:
Timestamp:
Dec 6, 2004, 1:11:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/images: fixed char-array-overflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/object.cc

    r3115 r3116  
    594594  mtlFileName = new char [strlen(mtlFile)+1];
    595595  strcpy(mtlFileName, mtlFile);
    596   char* fileName = new char [strlen(objPath) + strlen(mtlFileName)];
     596  char* fileName = new char [strlen(objPath) + strlen(mtlFileName)+1];
    597597  fileName[0] = '\0';
    598598  strcat(fileName, objPath);
Note: See TracChangeset for help on using the changeset viewer.