# HG changeset patch # User Luke Schierer # Date 1034448513 0 # Node ID 1861b94f4da10f5c57630d948e6ad2d9c27285ed # Parent ac2e1da8879fc52e7d7689db7d0ddce4c47d82c8 [gaim-migrate @ 3784] history plugin segfault fix courtesy of jstuart committer: Tailor Script diff -r ac2e1da8879f -r 1861b94f4da1 plugins/history.c --- 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];