Skip to content

Commit

Permalink
TFileDialog: do not ignore spaces in file paths
Browse files Browse the repository at this point in the history
This made sense in DOS, but not anymore.

Contributes to fixing #4.
  • Loading branch information
magiblot committed Jun 24, 2019
1 parent ba244f2 commit cde9d5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/tvision/tfildlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ static void trim( char *dest, const char *src )
{
while( *src != EOS && isspace( * (const unsigned char *) src ) )
src++;
while( *src != EOS && !isspace( * (const unsigned char *) src ) )
while( *src != EOS
#ifndef __FLAT__
&& !isspace( * (const unsigned char *) src )
#endif
)
*dest++ = *src++;
*dest = EOS;
}
Expand Down

0 comments on commit cde9d5a

Please sign in to comment.