From 4ec8cc10f78571629fa6c1fcf14f33bcd761dbd5 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Mon, 13 Dec 2021 18:18:00 +0200 Subject: [PATCH] Enlarge "DisplayVersion" buffer --- ep_setup/ep_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ep_setup/ep_setup.c b/ep_setup/ep_setup.c index de9e59e..886e038 100644 --- a/ep_setup/ep_setup.c +++ b/ep_setup/ep_setup.c @@ -106,8 +106,8 @@ BOOL SetupUninstallEntry(BOOL bInstall, WCHAR* wszPath) QueryVersionInfo(hEP, VS_VERSION_INFO, &dwLeftMost, &dwSecondLeft, &dwSecondRight, &dwRightMost); - WCHAR wszBuf[20]; - swprintf_s(wszBuf, 20, L"%d.%d.%d.%d", dwLeftMost, dwSecondLeft, dwSecondRight, dwRightMost); + WCHAR wszBuf[30]; + swprintf_s(wszBuf, 30, L"%d.%d.%d.%d", dwLeftMost, dwSecondLeft, dwSecondRight, dwRightMost); if (!dwLastError) {