| 14 void historize (char *name, void *data) |
14 void historize (char *name, void *data) |
| 15 { |
15 { |
| 16 struct conversation *c = find_conversation(name); |
16 struct conversation *c = find_conversation(name); |
| 17 struct stat st; |
17 struct stat st; |
| 18 FILE *fd; |
18 FILE *fd; |
| 19 char *userdir = gaim_user_dir(); |
19 char *userdir = g_strdup(gaim_user_dir()); |
| 20 char *logfile = g_strdup_printf("%s.log", normalize(name)); |
20 char *logfile = g_strdup_printf("%s.log", normalize(name)); |
| 21 char *path = g_build_filename(userdir, "logs", logfile, NULL); |
21 char *path = g_build_filename(userdir, "logs", logfile, NULL); |
| 22 char buf[HISTORY_SIZE+1]; |
22 char buf[HISTORY_SIZE+1]; |
| 23 char *tmp; |
23 char *tmp; |
| 24 int size; |
24 int size; |