From ade732396061ccf4707fae15ec562f8cd58fbc83 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 8 Jul 2009 20:12:11 -0700 Subject: [PATCH] gui: Fix brown-paper-bag bug in output file name selection. Thanks to michel@cecaps.ufmg.br for reporting the bug and the fix. --- src/ui/gui/output-viewer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/output-viewer.c b/src/ui/gui/output-viewer.c index 4bcd580a..09fd4f66 100644 --- a/src/ui/gui/output-viewer.c +++ b/src/ui/gui/output-viewer.c @@ -278,6 +278,8 @@ reload_viewer (struct output_viewer *ov) } +#define OUTPUT_FILE_NAME "psppire.txt" + const char * output_file_name (void) { @@ -285,7 +287,7 @@ output_file_name (void) static char *filename = NULL; if ( NULL == filename ) - filename = xasprintf ("%s%s", dir, output_file_name ()); + filename = xasprintf ("%s%s", dir, OUTPUT_FILE_NAME); return filename; -- 2.30.2