Mercurial > pidgin.yaz
diff src/gaimrc.c @ 26:b9e90a914e20
[gaim-migrate @ 35]
Peter Teichman sent me another huge list of patches. Here they are :)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 24 Mar 2000 19:17:34 +0000 |
parents | b9cc0a3a68b2 |
children | e3e7351cf70d |
line wrap: on
line diff
--- a/src/gaimrc.c Fri Mar 24 08:55:32 2000 +0000 +++ b/src/gaimrc.c Fri Mar 24 19:17:34 2000 +0000 @@ -203,8 +203,19 @@ fprintf(f, "away {\n"); while (awy) { + char *str1, *str2; + a = (struct away_message *)awy->data; - fprintf(f, "\tmessage { %s } { %s }\n", escape_text2(a->name), escape_text2(a->message)); + + str1 = escape_text2(a->name); + str2 = escape_text2(a->message); + + fprintf(f, "\tmessage { %s } { %s }\n", str1, str2); + + /* escape_text2 uses malloc(), so we don't want to g_free these */ + free(str1); + free(str2); + awy = awy->next; }