Changeset 13862

Show
Ignore:
Timestamp:
02/23/08 12:41:38 (4 months ago)
Author:
rouault
Message:

Fix '/vsimem\' handling for Windows (aka adrg_3 bug)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/port/cpl_vsil.cpp

    r13861 r13862  
    587587    VSIFileManager *poThis = Get(); 
    588588    std::map<std::string,VSIFilesystemHandler*>::const_iterator iter; 
     589    int nPathLen = strlen(pszPath); 
    589590 
    590591    for( iter = poThis->oHandlers.begin(); 
     
    592593         iter++ ) 
    593594    { 
    594         if( strncmp(pszPath,iter->first.c_str(),iter->first.size()) == 0 ) 
     595        const char* pszIterKey = iter->first.c_str(); 
     596        int nIterKeyLen = iter->first.size(); 
     597        if( strncmp(pszPath,pszIterKey,nIterKeyLen) == 0 ) 
    595598            return iter->second; 
    596599