*! Fixed a bug where leading blanks in a filename would hang the program

while determining the corresponding file type.
This commit is contained in:
Konstantin Isakov 2009-04-04 16:32:40 +00:00
parent 8c1ac1a2fb
commit b7bb7895bf

View file

@ -18,7 +18,8 @@ string simplifyString( string const & str )
size_t beginPos = 0;
while( beginPos < str.size() && isblank( str[ beginPos ] ) );
while( beginPos < str.size() && isblank( str[ beginPos ] ) )
++beginPos;
size_t endPos = str.size();