pspp-cvs
[Top][All Lists]
Advanced

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

[Pspp-cvs] Changes to pspp/src/sfm-read.c


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/sfm-read.c
Date: Tue, 01 Mar 2005 03:16:37 -0500

Index: pspp/src/sfm-read.c
diff -u pspp/src/sfm-read.c:1.15 pspp/src/sfm-read.c:1.16
--- pspp/src/sfm-read.c:1.15    Fri Feb 25 13:14:29 2005
+++ pspp/src/sfm-read.c Tue Mar  1 08:16:16 2005
@@ -122,26 +122,16 @@
 static void
 corrupt_msg (int class, const char *format,...)
 {
-  char buf[1024];
-  
-  {
-    va_list args;
-
-    va_start (args, format);
-    vsnprintf (buf, 1024, format, args);
-    va_end (args);
-  }
-  
-  {
-    struct error e;
+  struct error e;
+  va_list args;
 
-    e.class = class;
-    getl_location (&e.where.filename, &e.where.line_number);
-    e.title = _("corrupt system file: ");
-    e.text = buf;
-
-    err_vmsg (&e);
-  }
+  e.class = class;
+  getl_location (&e.where.filename, &e.where.line_number);
+  e.title = _("corrupt system file: ");
+
+  va_start (args, format);
+  err_vmsg (&e, format, args);
+  va_end (args);
 }
 
 /* Closes a system file after we're done with it. */




reply via email to

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