Mercurial > pidgin.yaz
diff libpurple/protocols/mxit/cipher.c @ 32337:5cb66143ae2a
propagate from branch 'im.pidgin.pidgin' (head 8f0dbb75e0842b6df34c773ceb3a62e07819c532)
to branch 'im.pidgin.pidgin.mxit' (head 58ce8d40af953c67a284a42e026ccdbfd25ffaa8)
author | andrew.victor@mxit.com |
---|---|
date | Fri, 12 Aug 2011 21:41:34 +0000 |
parents | 3951afa56940 4ad2a0668687 |
children | ff8ab76da6bb |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/cipher.c Sat Jul 09 20:10:36 2011 +0000 +++ b/libpurple/protocols/mxit/cipher.c Fri Aug 12 21:41:34 2011 +0000 @@ -85,12 +85,12 @@ pass[sizeof( pass ) - 1] = '\0'; /* build the custom AES encryption key */ - strcpy( key, INITIAL_KEY ); + g_strlcpy( key, INITIAL_KEY, sizeof( key ) ); memcpy( key, session->clientkey, strlen( session->clientkey ) ); ExpandKey( (unsigned char*) key, (unsigned char*) exkey ); /* build the custom data to be encrypted */ - strcpy( pass, SECRET_HEADER ); + g_strlcpy( pass, SECRET_HEADER, sizeof( pass ) ); strcat( pass, session->acc->password ); /* pad the secret data */