From 9f1d65cab171b3786969696e6d9f9aad3ce54c0b Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Thu, 30 Jul 2009 19:37:36 +0300 Subject: [PATCH] Revert "More about ppc/ppc64 warnings (FTBFS errors with gcc 4.4)" This reverts commit 9ee6663a9d3f3f7ef01a7d7d207236665f9aecba. Problem is caused by compiler bug on ppc platform. --- src/sip-sec-ntlm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sip-sec-ntlm.c b/src/sip-sec-ntlm.c index 93f716ec..23caf796 100644 --- a/src/sip-sec-ntlm.c +++ b/src/sip-sec-ntlm.c @@ -504,19 +504,19 @@ purple_ntlm_gen_authenticate(guchar **ntlm_key, const gchar *user, const gchar * tmsg->dom_off = sizeof(struct authenticate_message); tmp = ((char*) tmsg) + tmsg->dom_off; remlen = ((char *)tmsg)+msglen-tmp; - tmsg->dom_len1 = tmsg->dom_len2 = (guint16)unicode_strconvcopy((gchar *)tmp, domain, remlen); + tmsg->dom_len1 = tmsg->dom_len2 = (guint16)unicode_strconvcopy(tmp, domain, remlen); tmp += tmsg->dom_len1; remlen = ((char *)tmsg)+msglen-tmp; /* User */ tmsg->user_off = tmsg->dom_off + tmsg->dom_len1; - tmsg->user_len1 = tmsg->user_len2 = (guint16)unicode_strconvcopy((gchar *)tmp, user, remlen); + tmsg->user_len1 = tmsg->user_len2 = unicode_strconvcopy(tmp, user, remlen); tmp += tmsg->user_len1; remlen = ((char *)tmsg)+msglen-tmp; /* Host */ tmsg->host_off = tmsg->user_off + tmsg->user_len1; - tmsg->host_len1 = tmsg->host_len2 = (guint16)unicode_strconvcopy((gchar *)tmp, hostname, remlen); + tmsg->host_len1 = tmsg->host_len2 = unicode_strconvcopy(tmp, hostname, remlen); tmp += tmsg->host_len1; /* LM */ -- 2.11.4.GIT