[aseprite] 12/64: Fix crash when a WM_DDE_INITIATE is received from a native ANSI window
Tobias Hansen
thansen at moszumanska.debian.org
Tue Jun 21 14:43:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 095078ad040c70aab2e2011b5079dfbcf8639d2a
Author: David Capello <davidcapello at gmail.com>
Date: Mon May 9 12:50:53 2016 -0300
Fix crash when a WM_DDE_INITIATE is received from a native ANSI window
---
src/she/win/window_dde.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/she/win/window_dde.cpp b/src/she/win/window_dde.cpp
index c4028d9..54c75b0 100644
--- a/src/she/win/window_dde.cpp
+++ b/src/she/win/window_dde.cpp
@@ -33,7 +33,7 @@ std::string get_atom_string(ATOM atom, bool isUnicode)
result = base::to_utf8(std::wstring(&buf[0]));
}
else {
- std::vector<char> buf;
+ std::vector<char> buf(256, 0);
UINT chars = GlobalGetAtomNameA(atom, &buf[0], buf.size());
result = &buf[0];
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list