Mercurial > pidgin.yaz
diff src/dialogs.c @ 1722:1edc8b545d6f
[gaim-migrate @ 1732]
bugfixes and mem plugs
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 17 Apr 2001 20:42:47 +0000 |
| parents | f42ce672c560 |
| children | 251c19bf5763 |
line wrap: on
line diff
--- a/src/dialogs.c Mon Apr 16 17:04:15 2001 +0000 +++ b/src/dialogs.c Tue Apr 17 20:42:47 2001 +0000 @@ -3592,10 +3592,12 @@ FILE *fp_old, *fp_new; char filename[PATHSIZE]; char *name; + char *tmp; name = gtk_object_get_user_data(GTK_OBJECT(filesel)); - g_snprintf(filename, PATHSIZE, "%s/logs/%s.log", - gaim_user_dir(), normalize(name)); + tmp = gaim_user_dir(); + g_snprintf(filename, PATHSIZE, "%s/logs/%s.log", tmp, normalize(name)); + g_free(tmp); file = gtk_file_selection_get_filename(GTK_FILE_SELECTION(filesel)); strncpy(path, file, PATHSIZE-1); @@ -3664,9 +3666,11 @@ gchar buf[256]; gchar filename[256]; GtkWidget *window; - - g_snprintf(filename, 256, "%s/logs/%s.log", - gaim_user_dir(), normalize(name)); + char *tmp; + + tmp = gaim_user_dir(); + g_snprintf(filename, 256, "%s/logs/%s.log", tmp, normalize(name)); + g_free(tmp); if ((remove(filename)) == -1) { g_snprintf(buf, 256, _("Unable to remove file %s - %s"),
