From: Ben Pfaff Date: Sat, 12 Mar 2005 01:12:16 +0000 (+0000) Subject: Fix const-correctness in error(). X-Git-Tag: v0.4.0~143 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d22bfb099969c0d443623aa5b5c9edc4747ce5e;p=pspp-builds.git Fix const-correctness in error(). --- diff --git a/src/pfm-read.c b/src/pfm-read.c index 3e20f039..52e32325 100644 --- a/src/pfm-read.c +++ b/src/pfm-read.c @@ -82,7 +82,7 @@ error (struct pfm_reader *r, const char *msg, ...) getl_location (&e.where.filename, &e.where.line_number); filename = handle_get_filename (r->fh); e.title = title = pool_alloc (r->pool, strlen (filename) + 80); - sprintf (e.title, _("portable file %s corrupt at offset %ld: "), + sprintf (title, _("portable file %s corrupt at offset %ld: "), filename, ftell (r->file)); va_start (args, msg);