From: Marios Paouris Date: Fri, 21 Jun 2024 07:43:54 +0000 (+0300) Subject: Increase adapter name to the maximum size allowed by Wintun X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2ade7b8d116e27e016295b540b12706b74c2ff4c;p=users%2Fdwmw2%2Fopenconnect.git Increase adapter name to the maximum size allowed by Wintun Signed-off-by: Marios Paouris --- 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;