Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3130 in orxonox.OLD for orxonox/branches/images/importer/material.cc


Ignore:
Timestamp:
Dec 8, 2004, 12:37:23 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/images: now really works on Windows

File:
1 edited

Legend:

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

    r3129 r3130  
    6060  char* tmpPName = new char[strlen(pName)];
    6161  strncpy(tmpPName, pName, strlen(pName)-1);
    62 
     62  tmpPName[strlen(pName)-1] = '\0';
     63  printf ("%s\n",tmpPName);
    6364  if (access (tmpPName, F_OK) == 0)
    6465    {
     
    7677      else
    7778        if (verbose >=1)
    78           printf ("You tried to add non-folder %s to a PathList.\n", pName);
     79          printf ("You tried to add non-folder %s to a PathList.\n", tmpPName);
    7980    }
    8081  else
    8182    if (verbose >=1)
    82       printf ("You tried to add non-existing folder %s to a PathList.\n", pName);
     83      printf ("You tried to add non-existing folder %s to a PathList.\n", tmpPName);
    8384  delete []tmpPName;
    8485}
Note: See TracChangeset for help on using the changeset viewer.