]> git.sesse.net Git - vlc/commitdiff
Terminates string with '\0'
authorRafaël Carré <funman@videolan.org>
Thu, 26 Oct 2006 18:27:29 +0000 (18:27 +0000)
committerRafaël Carré <funman@videolan.org>
Thu, 26 Oct 2006 18:27:29 +0000 (18:27 +0000)
modules/gui/wxwidgets/wxwidgets.hpp

index ecf302e6dad7936cdd1e39b08cb53590ba9f82eb..dfd0d3e08731e3966a526f645339bc7449703463 100644 (file)
@@ -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