Changeset 983


Ignore:
Timestamp:
12/10/2006 21:52:52 (5 years ago)
Author:
chris
Message:
  • Use DIRECTORY_SEPARATOR instead of assuming that it's a forward slash
File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/backupstore/BackupStoreCheck.cpp

    r851 r983  
    329329        StoreStructure::MakeObjectFilename(StartID, mStoreRoot, mDiscSetNumber, dirName, false /* don't make sure the dir exists */); 
    330330        // Check expectations 
    331         ASSERT(dirName.size() > 4 && dirName[dirName.size() - 4] == '/'); 
     331        ASSERT(dirName.size() > 4 &&  
     332                dirName[dirName.size() - 4] == DIRECTORY_SEPARATOR_ASCHAR); 
    332333        // Remove the filename from it 
    333334        dirName.resize(dirName.size() - 4); // four chars for "/o00" 
     
    378379                { 
    379380                        // Unexpected or bad file, delete it 
    380                         ::printf("Spurious file %s/%s found%s\n", dirName.c_str(), (*i).c_str(), mFixErrors?", deleting":""); 
     381                        ::printf("Spurious file %s" DIRECTORY_SEPARATOR "%s " 
     382                                "found%s\n", dirName.c_str(), (*i).c_str(),  
     383                                mFixErrors?", deleting":""); 
    381384                        ++mNumberErrorsFound; 
    382385                        if(mFixErrors) 
Note: See TracChangeset for help on using the changeset viewer.