[PATCH 2/3] wscript: Zero terminate the host version string to avoid random garbage.
Michael Stefaniuc
mstefani at winehq.org
Tue Nov 3 16:34:34 CST 2020
String is used only once and passed to SysAllocString() which assumes a
zero terminated string.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
programs/wscript/host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/wscript/host.c b/programs/wscript/host.c
index 9541994d3b0..ba3a32a935d 100644
--- a/programs/wscript/host.c
+++ b/programs/wscript/host.c
@@ -33,7 +33,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wscript);
#define BUILDVERSION 16535
-static const WCHAR wshVersionW[] = {'5','.','8'};
+static const WCHAR wshVersionW[] = L"5.8";
VARIANT_BOOL wshInteractive =
#ifndef CSCRIPT_BUILD
--
2.26.2
More information about the wine-devel
mailing list