Commit 4613b810 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use the fine stack as we can

parent 6cb1b6ed
......@@ -120,14 +120,12 @@ static inline char *wxDnDFromLocale( const wxChar *stupid )
for (braindead = stupid; *braindead; braindead++);
size_t i = (braindead - stupid);
char *psz_local = (char *)malloc( i + 1 );
char psz_local[i + 1];
do
psz_local[i] = (char)stupid[i];
while (i--);
char *psz_utf8 = FromLocaleDup( psz_local );
free( psz_local );
return psz_utf8;
return FromLocaleDup( psz_local );
}
# define wxDnDLocaleFree( string ) free( string )
#else
......
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