comparison 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
comparison
equal deleted inserted replaced
25:c56db1b46b0d 26:b9e90a914e20
201 struct away_message *a; 201 struct away_message *a;
202 202
203 fprintf(f, "away {\n"); 203 fprintf(f, "away {\n");
204 204
205 while (awy) { 205 while (awy) {
206 char *str1, *str2;
207
206 a = (struct away_message *)awy->data; 208 a = (struct away_message *)awy->data;
207 fprintf(f, "\tmessage { %s } { %s }\n", escape_text2(a->name), escape_text2(a->message)); 209
210 str1 = escape_text2(a->name);
211 str2 = escape_text2(a->message);
212
213 fprintf(f, "\tmessage { %s } { %s }\n", str1, str2);
214
215 /* escape_text2 uses malloc(), so we don't want to g_free these */
216 free(str1);
217 free(str2);
218
208 awy = awy->next; 219 awy = awy->next;
209 } 220 }
210 221
211 fprintf(f, "}\n"); 222 fprintf(f, "}\n");
212 } 223 }