diff --git a/src/she/win/window_dde.cpp b/src/she/win/window_dde.cpp index c4028d9d1..54c75b097 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 buf; + std::vector buf(256, 0); UINT chars = GlobalGetAtomNameA(atom, &buf[0], buf.size()); result = &buf[0]; }