Commit 9d402690 authored by Rafaël Carré's avatar Rafaël Carré

Fix WX drag & drop bug introduced in [17239]

parent 9fda8c50
......@@ -130,6 +130,7 @@ static inline char *wxDnDFromLocale( const wxChar *stupid )
for (size_t i = 0; i < n; i++)
psz_local[i] = stupid[i];
psz_local[n] = '\0';
if ((n >= 1) && (stupid[n - 1] == '\n'))
psz_local[n - 1] = '\0';
......
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