From: Ben Pfaff Date: Thu, 9 Jul 2009 03:12:11 +0000 (-0700) Subject: gui: Fix brown-paper-bag bug in output file name selection. X-Git-Tag: v0.6.2-pre4~2 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade732396061ccf4707fae15ec562f8cd58fbc83;p=pspp-builds.git gui: Fix brown-paper-bag bug in output file name selection. Thanks to michel@cecaps.ufmg.br for reporting the bug and the fix. --- 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;