Ignore:
Timestamp:
09/05/10 13:37:48 (2 years ago)
Author:
Freddie Akeroyd
Message:

Fix const correctness and add additional includes. Refs #229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contrib/applications/NXextract/src/file.cpp

    r1446 r1471  
    518518    return; 
    519519 
    520   char   *p; 
     520  const char   *p; 
    521521#ifdef __WIN32__ 
    522522  // Skeep UNC starting if it exists 
     
    575575  do 
    576576  { 
    577     *p = 0; 
     577    str[p - PSZ(str)] = '\0';  // *p = 0; 
    578578    struct stat st; 
    579579    if( ::stat(PSZ(str), &st) ) 
     
    634634    } 
    635635    // Next path component 
    636     *p = SEP_PATH; 
     636    str[p - PSZ(str)] = SEP_PATH;   // *p = SEP_PATH; 
    637637    p = strchr(p+1, SEP_PATH); 
    638638  } while( p ); 
Note: See TracChangeset for help on using the changeset viewer.