Hi,
> + if (!GetSystemDirectoryW(win_sys_path, _countof(win_sys_path)))
> + {
> + wcsncpy(win_sys_path, default_sys_path, _countof(win_sys_path));
> + win_sys_path[_countof(win_sys_path) - 1] = L'\0';
> + }
>
Is there need in adding null terminator to win_sys_path?
Since it is static, it will be initialized with zeroes at startup. Besides,
wcsncpy also adds null terminator.
--
-Lev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel