Ignore:
Timestamp:
Apr 4, 2009, 4:49:00 PM (16 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/R2/src/R2FilePath.cpp

    r1114 r1380  
    1717R2FilePath::R2FilePath()
    1818{
    19     char buff[255];
     19    char buff[BUFSIZ+2];
    2020#ifdef WIN32
    2121    _getcwd(buff, 255);
    2222#else
    23     getcwd(buff, 100);
     23    if (getcwd(buff, BUFSIZ) == NULL) {
     24        fprintf(stderr, "can't get current working directory\n");
     25    }
    2426#endif
    25     int length = strlen(buff);
     27    size_t length = strlen(buff);
    2628    buff[length] = '/';
    2729    buff[length + 1] = '\0';
    28 
    2930    _curDirectory = buff;
    30 
    3131}
    3232
Note: See TracChangeset for help on using the changeset viewer.