pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU PSPP 0.6.2pre3 now available


From: michel
Subject: Re: GNU PSPP 0.6.2pre3 now available
Date: Fri, 03 Jul 2009 23:58:38 -0300
User-agent: RoundCube Webmail/0.2

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 ;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]