From 253dec3a445db66494451edeb1c092603f8878e1 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 25 Aug 2023 17:43:04 +0000 Subject: quote file names in messages git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4615 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pnmtojpeg.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'converter/other') diff --git a/converter/other/pnmtojpeg.c b/converter/other/pnmtojpeg.c index e3458319..a2c9c670 100644 --- a/converter/other/pnmtojpeg.c +++ b/converter/other/pnmtojpeg.c @@ -538,7 +538,7 @@ read_scan_script(j_compress_ptr const cinfo, fp = fopen(filename, "r"); if (fp == NULL) { - pm_message("Can't open scan definition file %s", filename); + pm_message("Can't open scan definition file '%s'", filename); return FALSE; } nscans = 0; @@ -546,7 +546,7 @@ read_scan_script(j_compress_ptr const cinfo, while (read_scan_integer(fp, &val, &termchar)) { ++nscans; /* We got another scan */ if (nscans > MAX_SCANS) { - pm_message("Too many scans defined in file %s", filename); + pm_message("Too many scans defined in file '%s'", filename); fclose(fp); return FALSE; } @@ -554,7 +554,7 @@ read_scan_script(j_compress_ptr const cinfo, ncomps = 1; while (termchar == ' ') { if (ncomps >= MAX_COMPS_IN_SCAN) { - pm_message("Too many components in one scan in file %s", + pm_message("Too many components in one scan in file '%s'", filename); fclose(fp); return FALSE; @@ -587,14 +587,14 @@ read_scan_script(j_compress_ptr const cinfo, } if (termchar != ';' && termchar != EOF) { bogus: - pm_message("Invalid scan entry format in file %s", filename); + pm_message("Invalid scan entry format in file '%s'", filename); fclose(fp); return FALSE; } } if (termchar != EOF) { - pm_message("Non-numeric data in file %s", filename); + pm_message("Non-numeric data in file '%s'", filename); fclose(fp); return FALSE; } @@ -639,7 +639,7 @@ read_quant_tables (j_compress_ptr cinfo, char * filename, fp = fopen(filename, "rb"); if (fp == NULL) { - pm_message("Can't open table file %s", filename); + pm_message("Can't open table file '%s'", filename); retval = FALSE; } else { boolean eof, error; @@ -654,7 +654,7 @@ read_quant_tables (j_compress_ptr cinfo, char * filename, if (gotOne) { /* read 1st element of table */ if (tblno >= NUM_QUANT_TBLS) { - pm_message("Too many tables in file %s", filename); + pm_message("Too many tables in file '%s'", filename); error = TRUE; } else { unsigned int table[DCTSIZE2]; @@ -663,7 +663,7 @@ read_quant_tables (j_compress_ptr cinfo, char * filename, table[0] = (unsigned int) val; for (i = 1; i < DCTSIZE2 && !error; ++i) { if (! readTextInteger(fp, &val, &termchar)) { - pm_message("Invalid table data in file %s", + pm_message("Invalid table data in file '%s'", filename); error = TRUE; } else @@ -677,7 +677,7 @@ read_quant_tables (j_compress_ptr cinfo, char * filename, if (termchar == EOF) eof = TRUE; else { - pm_message("Non-numeric data in file %s", filename); + pm_message("Non-numeric data in file '%s'", filename); error = TRUE; } } -- cgit 1.4.1