changeset 3655:1861b94f4da1

[gaim-migrate @ 3784] history plugin segfault fix courtesy of jstuart committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 12 Oct 2002 18:48:33 +0000
parents ac2e1da8879f
children e597186997d5
files plugins/history.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/history.c	Sat Oct 12 07:47:47 2002 +0000
+++ b/plugins/history.c	Sat Oct 12 18:48:33 2002 +0000
@@ -16,7 +16,7 @@
 	struct conversation *c = find_conversation(name);
 	struct stat st;
 	FILE *fd;
-	char *userdir = gaim_user_dir();
+	char *userdir = g_strdup(gaim_user_dir());
 	char *logfile = g_strdup_printf("%s.log", normalize(name));
 	char *path = g_build_filename(userdir, "logs", logfile, NULL);
 	char buf[HISTORY_SIZE+1];