From 2ade7b8d116e27e016295b540b12706b74c2ff4c Mon Sep 17 00:00:00 2001 From: Marios Paouris Date: Fri, 21 Jun 2024 10:43:54 +0300 Subject: [PATCH] Increase adapter name to the maximum size allowed by Wintun Signed-off-by: Marios Paouris --- tun-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tun-win32.c b/tun-win32.c index f69aa112..a014b2a5 100644 --- a/tun-win32.c +++ b/tun-win32.c @@ -77,7 +77,7 @@ static intptr_t search_taps(struct openconnect_info *vpninfo, tap_callback *cb) DWORD len, type; int adapter_type; char buf[40]; - wchar_t name[40]; + wchar_t name[MAX_ADAPTER_NAME]; char keyname[strlen(CONNECTIONS_KEY) + sizeof(buf) + 1 + strlen("\\Connection")]; int i = 0; intptr_t ret = OPEN_TUN_SOFTFAIL; -- 2.50.1