# HG changeset patch # User Mark Doliner # Date 1188845188 0 # Node ID 2850f5eb314f534394ca136c9097152ddd1f541d # Parent 20dda83a6c67f18b0de2dd19b5fc242190117e39 Set our alias using the appropriate function. This makes a copy of the string rather than just pointing alias to a variable within session which will eventually get free'd and leave account->alias pointing to deallocated memory. diff -r 20dda83a6c67 -r 2850f5eb314f libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Mon Sep 03 18:15:55 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Mon Sep 03 18:46:28 2007 +0000 @@ -1444,7 +1444,7 @@ /* If a local alias wasn't set, set it to user's username. */ if (!session->account->alias || !strlen(session->account->alias)) - session->account->alias = session->username; + purple_account_set_alias(session->account, session->username); /* The session is now set up, ready to be connected. This emits the * signedOn signal, so clients can now do anything with msimprpl, and