Commit 37d272d3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Compile fix attempt

parent e634fbcf
...@@ -132,11 +132,13 @@ static inline char *wxDnDFromLocale( const wxChar *stupid ) ...@@ -132,11 +132,13 @@ 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);
char psz_local[i + 1];
// Some X11 file browsers append a line feed to the filename... // Some X11 file browsers append a line feed to the filename...
psz_local[i--] = 0;
if (stupid[i] == '\n') if (stupid[i] == '\n')
stupid[i] = 0; psz_local[i--] = 0;
char psz_local[i + 1];
do do
psz_local[i] = (char)stupid[i]; psz_local[i] = (char)stupid[i];
while (i--); while (i--);
......
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