[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/pfm-read.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/pfm-read.c |
Date: |
Tue, 01 Mar 2005 03:16:34 -0500 |
Index: pspp/src/pfm-read.c
diff -u pspp/src/pfm-read.c:1.15 pspp/src/pfm-read.c:1.16
--- pspp/src/pfm-read.c:1.15 Mon Jan 31 01:54:57 2005
+++ pspp/src/pfm-read.c Tue Mar 1 08:16:15 2005
@@ -70,34 +70,24 @@
static int
corrupt_msg (struct pfm_reader *r, const char *format, ...)
{
- char buf[1024];
-
- {
- va_list args;
-
- va_start (args, format);
- vsnprintf (buf, 1024, format, args);
- va_end (args);
- }
-
- {
- char *title;
- struct error e;
- const char *filename;
-
- e.class = ME;
- getl_location (&e.where.filename, &e.where.line_number);
- filename = handle_get_filename (r->fh);
- e.title = title = local_alloc (strlen (filename) + 80);
- sprintf (title, _("portable file %s corrupt at offset %ld: "),
- filename, ftell (r->file) - (82 - (long) (r->bp - r->buf)));
- e.text = buf;
+ char *title;
+ struct error e;
+ const char *filename;
+ va_list args;
+
+ e.class = ME;
+ getl_location (&e.where.filename, &e.where.line_number);
+ filename = handle_get_filename (r->fh);
+ e.title = title = local_alloc (strlen (filename) + 80);
+ sprintf (title, _("portable file %s corrupt at offset %ld: "),
+ filename, ftell (r->file) - (82 - (long) (r->bp - r->buf)));
+
+ va_start (args, format);
+ err_vmsg (&e, format, args);
+ va_end (args);
- err_vmsg (&e);
+ local_free (title);
- local_free (title);
- }
-
return 0;
}
- [Pspp-cvs] Changes to pspp/src/pfm-read.c,
Ben Pfaff <=