summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp4
-rw-r--r--orkaudio/audiocaptureplugins/voip/VoIp.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp b/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp
index 1e25a2a..f3462a3 100644
--- a/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp
+++ b/orkaudio/audiocaptureplugins/voip/PacketHeaderDefs.cpp
@@ -154,7 +154,7 @@ bool SkinnyValidateCallInfo(SkCallInfoStruct* sci, u_char* packetEnd)
bool SkinnyValidateCcm5CallInfo(SkCcm5CallInfoStruct *sci, u_char* packetEnd)
{
- int partiesLen = 0;
+ long partiesLen = 0;
bool valid = true;
if(((u_char*)sci + sizeof(SkCcm5CallInfoStruct)) > packetEnd)
{
@@ -164,7 +164,7 @@ bool SkinnyValidateCcm5CallInfo(SkCcm5CallInfoStruct *sci, u_char* packetEnd)
{
valid = false;
}
- partiesLen = (int)packetEnd - (int)sci - sizeof(SkCcm5CallInfoStruct);
+ partiesLen = (long)packetEnd - (long)sci - sizeof(SkCcm5CallInfoStruct);
if(valid)
{
valid = checkPartyString(sci->parties, partiesLen);
diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
index d50a039..bf23eba 100644
--- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp
+++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
@@ -2362,10 +2362,10 @@ void HandleSkinnyMessage(SkinnyHeaderStruct* skinnyHeader, IpHeaderStruct* ipHea
{
// Extract Calling and Called number.
CStdString callingParty;
- int partiesLen = 0;
+ long partiesLen = 0;
char* parties = (char*)(&ccm5CallInfo->parties);
- partiesLen = (int)packetEnd - (int)ccm5CallInfo - sizeof(SkCcm5CallInfoStruct);
+ partiesLen = (long)packetEnd - (long)ccm5CallInfo - sizeof(SkCcm5CallInfoStruct);
GrabToken(parties, parties+partiesLen, callingParty);
CStdString calledParty;
GrabToken(parties+callingParty.size()+1, parties+partiesLen, calledParty);