|
|
@ -693,9 +693,9 @@ namespace client |
|
|
|
LogPrint (eLogDebug, "SAM: datagram received ", len); |
|
|
|
LogPrint (eLogDebug, "SAM: datagram received ", len); |
|
|
|
auto base64 = from.ToBase64 (); |
|
|
|
auto base64 = from.ToBase64 (); |
|
|
|
#ifdef _MSC_VER |
|
|
|
#ifdef _MSC_VER |
|
|
|
size_t l = sprintf_s ((char *)m_StreamBuffer, SAM_SOCKET_BUFFER_SIZE, SAM_DATAGRAM_RECEIVED, base64.c_str (), len); |
|
|
|
size_t l = sprintf_s ((char *)m_StreamBuffer, SAM_SOCKET_BUFFER_SIZE, SAM_DATAGRAM_RECEIVED, base64.c_str (), (int)len); |
|
|
|
#else |
|
|
|
#else |
|
|
|
size_t l = snprintf ((char *)m_StreamBuffer, SAM_SOCKET_BUFFER_SIZE, SAM_DATAGRAM_RECEIVED, base64.c_str (), len); |
|
|
|
size_t l = snprintf ((char *)m_StreamBuffer, SAM_SOCKET_BUFFER_SIZE, SAM_DATAGRAM_RECEIVED, base64.c_str (), (int)len); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
if (len < SAM_SOCKET_BUFFER_SIZE - l) |
|
|
|
if (len < SAM_SOCKET_BUFFER_SIZE - l) |
|
|
|
{ |
|
|
|
{ |
|
|
|