From 6d22bfb099969c0d443623aa5b5c9edc4747ce5e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 12 Mar 2005 01:12:16 +0000 Subject: [PATCH] Fix const-correctness in error(). --- src/pfm-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2