Changeset 1380 for trunk/packages/vizservers/nanovis/R2
- Timestamp:
- Apr 4, 2009, 4:49:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/R2/src/R2FilePath.cpp
r1114 r1380 17 17 R2FilePath::R2FilePath() 18 18 { 19 char buff[ 255];19 char buff[BUFSIZ+2]; 20 20 #ifdef WIN32 21 21 _getcwd(buff, 255); 22 22 #else 23 getcwd(buff, 100); 23 if (getcwd(buff, BUFSIZ) == NULL) { 24 fprintf(stderr, "can't get current working directory\n"); 25 } 24 26 #endif 25 int length = strlen(buff);27 size_t length = strlen(buff); 26 28 buff[length] = '/'; 27 29 buff[length + 1] = '\0'; 28 29 30 _curDirectory = buff; 30 31 31 } 32 32
Note: See TracChangeset
for help on using the changeset viewer.