From 2ece60500a1b97dc8189076a4271d25385b9232d Mon Sep 17 00:00:00 2001 From: nils-ohlmeier Date: Fri, 9 Jun 2006 06:42:04 +0000 Subject: [PATCH] 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 f095d2b7b0a9628a2f1c425e146c9837ab5eb29d) --- auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.c b/auth.c index 71c5bfc..97839ac 100644 --- a/auth.c +++ b/auth.c @@ -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);