mirror of
https://github.com/curl/curl.git
synced 2026-04-21 12:32:11 +03:00
schannel: replace atoi() with curlx_str_number()
The last atoi() call removed from libcurl Closes #19483
This commit is contained in:
parent
f1fec22776
commit
296ffc45c3
1 changed files with 4 additions and 1 deletions
|
|
@ -2587,9 +2587,12 @@ static int schannel_init(void)
|
|||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
if(p_wine_get_version) { /* WINE detected */
|
||||
curl_off_t ver = 0;
|
||||
const char *wine_version = p_wine_get_version(); /* e.g. "6.0.2" */
|
||||
/* Assume ALPN support with WINE 6.0 or upper */
|
||||
s_win_has_alpn = wine_version && atoi(wine_version) >= 6;
|
||||
if(wine_version)
|
||||
curlx_str_number(&wine_version, &ver, 20);
|
||||
s_win_has_alpn = (ver >= 6);
|
||||
}
|
||||
else {
|
||||
/* ALPN is supported on Windows 8.1 / Server 2012 R2 and above. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue