Commit 00fa060e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Shorter version

parent f57eaf6d
...@@ -132,15 +132,15 @@ static inline char *wxDnDFromLocale( const wxChar *stupid ) ...@@ -132,15 +132,15 @@ static inline char *wxDnDFromLocale( const wxChar *stupid )
for (braindead = stupid; *braindead; braindead++); for (braindead = stupid; *braindead; braindead++);
size_t i = (braindead - stupid); size_t i = (braindead - stupid);
// Some X11 file browsers append a line feed to the filename...
if (stupid[i] == '\n')
stupid[i] = 0;
char psz_local[i + 1]; char psz_local[i + 1];
do do
psz_local[i] = (char)stupid[i]; psz_local[i] = (char)stupid[i];
while (i--); while (i--);
char *dumb_peer_app = strrchr (psz_local, '\n');
if (dump_peer_app != NULL)
dumb_peer_app = 0;
return FromLocaleDup( psz_local ); return FromLocaleDup( psz_local );
} }
# define wxDnDLocaleFree( string ) free( string ) # define wxDnDLocaleFree( string ) free( string )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment