diff --git a/lib/EAPBase/src/Method.cpp b/lib/EAPBase/src/Method.cpp index dcdc8ac..7aa2ef1 100644 --- a/lib/EAPBase/src/Method.cpp +++ b/lib/EAPBase/src/Method.cpp @@ -238,7 +238,7 @@ EapPeerMethodResponseAction eap::method_eap::process_request_packet( // Check packet size. DWORD size_packet = ntohs(*reinterpret_cast(hdr->Length)); if (size_packet > dwReceivedPacketSize) - throw invalid_argument(string_printf(__FUNCTION__ " Incorrect EAP packet length (expected: %uB, received: %uB).", size_packet, dwReceivedPacketSize)); + throw invalid_argument(string_printf(__FUNCTION__ " Incorrect EAP packet length (expected: %u, received: %u).", size_packet, dwReceivedPacketSize)); // Save request packet ID to make matching response packet in get_response_packet() later. m_id = hdr->Id; diff --git a/lib/EAPBase/src/Module.cpp b/lib/EAPBase/src/Module.cpp index fc22e62..abb87fb 100644 --- a/lib/EAPBase/src/Module.cpp +++ b/lib/EAPBase/src/Module.cpp @@ -145,7 +145,7 @@ BYTE* eap::module::alloc_memory(_In_ size_t size) const { BYTE *p = (BYTE*)HeapAlloc(m_heap, 0, size); if (!p) - throw win_runtime_error(winstd::string_printf(__FUNCTION__ " Error allocating memory for BLOB (%zuB).", size)); + throw win_runtime_error(winstd::string_printf(__FUNCTION__ " Error allocating memory for BLOB (%zu).", size)); return p; }