From cbff530cdf0882f1421a31e37253a9c669ccd4cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 26 Oct 2006 18:27:29 +0000 Subject: [PATCH 1/1] Terminates string with '\0' --- modules/gui/wxwidgets/wxwidgets.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/wxwidgets/wxwidgets.hpp b/modules/gui/wxwidgets/wxwidgets.hpp index ecf302e6da..dfd0d3e087 100644 --- a/modules/gui/wxwidgets/wxwidgets.hpp +++ b/modules/gui/wxwidgets/wxwidgets.hpp @@ -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 -- 2.39.2