diff --git a/sflphone-common/libs/iax2/iax2-parser.c b/sflphone-common/libs/iax2/iax2-parser.c index b8e62a84a12a487dd3c87fdec760d178c7a8dab3..ae4a8c2ed8e1c179b977a1647df1a09549edfeee 100644 --- a/sflphone-common/libs/iax2/iax2-parser.c +++ b/sflphone-common/libs/iax2/iax2-parser.c @@ -56,7 +56,7 @@ static unsigned short get_uint16(unsigned char *p) static void internaloutput(const char *str) { - printf(str); + printf("%s",str); } static void internalerror(const char *str) diff --git a/sflphone-common/src/sip/sdp.cpp b/sflphone-common/src/sip/sdp.cpp index 116d2df867c4b7622decbccbaf19de71f1d9ed0a..b36386dc91c327c815118c95b7ef484cb15199ed 100644 --- a/sflphone-common/src/sip/sdp.cpp +++ b/sflphone-common/src/sip/sdp.cpp @@ -375,7 +375,7 @@ void Sdp::sdp_add_zrtp_attribute (pjmedia_sdp_media* media, std::string hash) "%.*s %.*s", 4, ZRTP_VERSION, - hash.size(), + (int)hash.size(), hash.c_str()); attribute->value.slen = len;