fixed gcc 4.1 warnings

git-svn-id: http://svn.berlios.de/svnroot/repos/sipsak/trunk@405 75b5f7c7-cfd4-0310-b54c-e118b2c5249a
(cherry picked from commit 948d3efeafecfb5ec22f6c8e0f9407945a4534ad)
(cherry picked from commit f095d2b7b0)
mr3.8.5
nils-ohlmeier 19 years ago committed by Victor Seva
parent 6a79753f9c
commit 2ece60500a

@ -265,7 +265,7 @@ void insert_auth(char *message, char *authreq)
if (algo == SIPSAK_ALGO_MD5) {
if (authhash) {
strncpy(ha1_hex, authhash, SIPSAK_HASHHEXLEN_MD5);
strncpy((char*)&ha1_hex[0], authhash, SIPSAK_HASHHEXLEN_MD5);
}
else {
MD5Init(&Md5Ctx);
@ -300,7 +300,7 @@ void insert_auth(char *message, char *authreq)
#ifdef HAVE_OPENSSL_SHA1
else if (algo == SIPSAK_ALGO_SHA1) {
if (authhash) {
strncpy(ha1_hex, authhash, SIPSAK_HASHHEXLEN_SHA1);
strncpy((char*)&ha1_hex[0], authhash, SIPSAK_HASHHEXLEN_SHA1);
}
else {
SHA1_Init(&Sha1Ctx);

Loading…
Cancel
Save