Mercurial > pidgin.yaz
comparison src/gaimrc.c @ 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 | d19872836812 |
children | bd37db7531e4 |
comparison
equal
deleted
inserted
replaced
4692:a81443d3516b | 4693:78d5be1af6a6 |
---|---|
573 | 573 |
574 } | 574 } |
575 | 575 |
576 static void gaimrc_write_user(FILE *f, struct gaim_account *account) | 576 static void gaimrc_write_user(FILE *f, struct gaim_account *account) |
577 { | 577 { |
578 char *c; | 578 char *c, *d; |
579 int nl = 1, i; | 579 int nl = 1, i; |
580 | 580 |
581 if (account->options & OPT_ACCT_REM_PASS) { | 581 if (account->options & OPT_ACCT_REM_PASS) { |
582 fprintf(f, "\t\tident { %s } { %s }\n", account->username, (c = escape_text2(account->password))); | 582 fprintf(f, "\t\tident { %s } { %s }\n", (d = escape_text2(account->username)), (c = escape_text2(account->password))); |
583 free(c); | 583 free(c); |
584 free(d); | |
584 } else { | 585 } else { |
585 fprintf(f, "\t\tident { %s } { }\n", account->username); | 586 fprintf(f, "\t\tident { %s } { }\n", (d = escape_text2(account->username))); |
587 free(d); | |
586 } | 588 } |
587 fprintf(f, "\t\tuser_info {"); | 589 fprintf(f, "\t\tuser_info {"); |
588 c = account->user_info; | 590 c = account->user_info; |
589 while (*c) { | 591 while (*c) { |
590 /* This is not as silly as it looks. */ | 592 /* This is not as silly as it looks. */ |