projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: Fix brown-paper-bag bug in output file name selection.
[pspp-builds.git]
/
src
/
ui
/
gui
/
output-viewer.c
diff --git
a/src/ui/gui/output-viewer.c
b/src/ui/gui/output-viewer.c
index 4bcd580a9fb078176fd4fdd222c7369f9228fe9b..09fd4f66f95ba83aff89692d7181115040b9d198 100644
(file)
--- 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)
{
const char *
output_file_name (void)
{
@@
-285,7
+287,7
@@
output_file_name (void)
static char *filename = NULL;
if ( NULL == filename )
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;
return filename;