Mercurial > pidgin.yaz
changeset 4693:78d5be1af6a6
[gaim-migrate @ 5004]
this fixes the problem with special characters in screennames getting
stripped. I think this only affects jabber, which is the only one that
allows such nonsense ;-)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 10 Mar 2003 16:36:16 +0000 |
parents | a81443d3516b |
children | 8f523dbb970e |
files | src/gaimrc.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gaimrc.c Mon Mar 10 07:21:18 2003 +0000 +++ b/src/gaimrc.c Mon Mar 10 16:36:16 2003 +0000 @@ -575,14 +575,16 @@ static void gaimrc_write_user(FILE *f, struct gaim_account *account) { - char *c; + char *c, *d; int nl = 1, i; if (account->options & OPT_ACCT_REM_PASS) { - fprintf(f, "\t\tident { %s } { %s }\n", account->username, (c = escape_text2(account->password))); + fprintf(f, "\t\tident { %s } { %s }\n", (d = escape_text2(account->username)), (c = escape_text2(account->password))); free(c); + free(d); } else { - fprintf(f, "\t\tident { %s } { }\n", account->username); + fprintf(f, "\t\tident { %s } { }\n", (d = escape_text2(account->username))); + free(d); } fprintf(f, "\t\tuser_info {"); c = account->user_info;