Fixed sign-compare warnings
authorArmin Novak <armin.novak@thincast.com>
Thu, 7 Feb 2019 13:36:17 +0000 (14:36 +0100)
committerArmin Novak <armin.novak@thincast.com>
Fri, 5 Apr 2019 07:13:25 +0000 (09:13 +0200)
winpr/libwinpr/smartcard/smartcard_pcsc.c

index 9ec8aa7..9ecf194 100644 (file)
@@ -2018,7 +2018,7 @@ WINSCARDAPI LONG WINAPI PCSC_SCardGetAttrib_Internal(SCARDHANDLE hCard, DWORD dw
 WINSCARDAPI LONG WINAPI PCSC_SCardGetAttrib_FriendlyName(SCARDHANDLE hCard, DWORD dwAttrId,
         LPBYTE pbAttr, LPDWORD pcbAttrLen)
 {
-       int length = 0;
+       size_t length = 0;
        char* namePCSC = NULL;
        DWORD cbAttrLen = 0;
        char* pbAttrA = NULL;