eliminate a pointer signedness warning
authorRussell Bryant <russell@russellbryant.com>
Fri, 7 Jul 2006 07:00:28 +0000 (07:00 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 7 Jul 2006 07:00:28 +0000 (07:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37289 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_jabber.c

index 5201889..b1788ce 100644 (file)
@@ -516,7 +516,7 @@ static int aji_act_hook(void *data, int type, iks *node)
                                                                                char *base64 = ast_malloc(80 + len * 2);
                                                                                iks_insert_attrib(x, "mechanism", "PLAIN");
                                                                                sprintf(s, "%c%s%c%s", 0, client->jid->user, 0, client->password);
-                                                                               ast_base64encode(base64, s, len, len * 2);
+                                                                               ast_base64encode(base64, (const unsigned char *) s, len, len * 2);
                                                                                iks_insert_cdata(x, base64, 0);
                                                                                iks_send(client->p, x);
                                                                                iks_delete(x);