aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/installer
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-17 10:59:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-17 10:59:05 +0100
commita349d9903ae10418ce7146e4a7e31b839f15a808 (patch)
tree66f24f5dc79fd3f36b3ac517d155b6f7f06f049e /installer
parentfetcher: check WinVerifyTrust before execution (diff)
downloadwireguard-windows-a349d9903ae10418ce7146e4a7e31b839f15a808.tar.xz
wireguard-windows-a349d9903ae10418ce7146e4a7e31b839f15a808.zip
fetcher: do not append .msi to random filename
It's actually not required, and we don't do it in updater. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'installer')
-rw-r--r--installer/fetcher/fetcher.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/installer/fetcher/fetcher.c b/installer/fetcher/fetcher.c
index 81c8d7e5..e4c94a02 100644
--- a/installer/fetcher/fetcher.c
+++ b/installer/fetcher/fetcher.c
@@ -76,7 +76,7 @@ static DWORD __stdcall download_thread(void *param)
DWORD ret = 1, bytes_read, bytes_written;
HINTERNET session = NULL, connection = NULL, request = NULL;
uint8_t hash[32], computed_hash[32];
- char download_path[MAX_FILENAME_LEN + sizeof(msi_path)], random_filename[64 + 4 + 1];
+ char download_path[MAX_FILENAME_LEN + sizeof(msi_path)], random_filename[65];
char buf[512 * 1024];
wchar_t total_bytes_str[22];
size_t total_bytes, current_bytes;
@@ -102,7 +102,6 @@ static DWORD __stdcall download_thread(void *param)
goto out;
if (!random_string(random_filename))
goto out;
- memcpy(random_filename + 64, ".msi", 5);
if (!PathAppendA(msi_filename, random_filename))
goto out;