Changeset 4615


Ignore:
Timestamp:
Aug 2, 2014, 12:03:12 PM (10 years ago)
Author:
ldelgass
Message:

string fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vtkvis/trunk/RenderServer.cpp

    r4366 r4615  
    224224    int i;
    225225    char fileName[33];
    226     const char *path;
    227226    md5_state_t state;
    228227    md5_byte_t digest[16];
     
    248247    std::ostringstream oss;
    249248    oss << STATSDIR << "/" << fileName;
    250     path = oss.str().c_str();
    251 
    252     g_statsFile = open(path, O_EXCL | O_CREAT | O_WRONLY, 0600);
     249    std::string pathStr = oss.str();
     250
     251    g_statsFile = open(pathStr.c_str(), O_EXCL | O_CREAT | O_WRONLY, 0600);
    253252    if (g_statsFile < 0) {
    254         ERROR("can't open \"%s\": %s", fileName, strerror(errno));
     253        ERROR("can't open \"%s\": %s", pathStr.c_str(), strerror(errno));
    255254        return -1;
    256255    }
Note: See TracChangeset for help on using the changeset viewer.