Commit cbff530c authored by Rafaël Carré's avatar Rafaël Carré

Terminates string with '\0'

parent e5209c6f
......@@ -127,7 +127,7 @@ static inline char *wxDnDFromLocale( const wxChar *stupid )
n++;
char psz_local[n + 1];
for (size_t i = 0; i < n; i++)
for (size_t i = 0; i <= n; i++)
psz_local[i] = stupid[i];
// Kludge for (broken?) apps that adds a LF at the end of DnD
......
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