mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[smartcardlogon] Fix off-by-one error in smartcard_hw_enumerateCerts
This commit is contained in:
@@ -581,8 +581,8 @@ static BOOL smartcard_hw_enumerateCerts(const rdpSettings* settings, LPCWSTR csp
|
||||
if (!scopeStr)
|
||||
goto out;
|
||||
|
||||
(void)_snprintf(scopeStr, readerSz + 5, "\\\\.\\%s\\", reader);
|
||||
scope = ConvertUtf8NToWCharAlloc(scopeStr, readerSz + 5, NULL);
|
||||
(void)_snprintf(scopeStr, readerSz + 6, "\\\\.\\%s\\", reader);
|
||||
scope = ConvertUtf8NToWCharAlloc(scopeStr, readerSz + 6, NULL);
|
||||
free(scopeStr);
|
||||
|
||||
if (!scope)
|
||||
|
||||
Reference in New Issue
Block a user