From 7f955f289ac68ef49e73eaa4a8d8f12168f47785 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 3 Nov 2020 23:34:34 +0100 Subject: [PATCH] wscript: Zero terminate the host version string to avoid random garbage. String is used only once and passed to SysAllocString() which assumes a zero terminated string. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- 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