Hello,
Seems like output_file_name is calling itself recursively, when it should
be using the default
name for the output file. This patch should fix it:
diff --git a/src/ui/gui/output-viewer.c b/src/ui/gui/output-viewer.c
index 4bcd580..6b02557 100644
--- a/src/ui/gui/output-viewer.c
+++ b/src/ui/gui/output-viewer.c
@@ -285,7 +285,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;
diff --git a/src/ui/gui/output-viewer.h b/src/ui/gui/output-viewer.h
index e5bf5c1..7115488 100644
--- a/src/ui/gui/output-viewer.h
+++ b/src/ui/gui/output-viewer.h
@@ -22,6 +22,7 @@
#include "window-manager.h"
+#define OUTPUT_FILE_NAME "psppire.txt"
extern int viewer_length ;
extern int viewer_width ;
_______________________________________________
Pspp-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-users