diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-08-25 17:43:04 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-08-25 17:43:04 +0000 |
commit | 253dec3a445db66494451edeb1c092603f8878e1 (patch) | |
tree | 3e6a048e1668d687821139d337195b1516bfe2aa /converter/other | |
parent | 0e86d1ac4ec13f2c505634329605b74811ece151 (diff) | |
download | netpbm-mirror-253dec3a445db66494451edeb1c092603f8878e1.tar.gz netpbm-mirror-253dec3a445db66494451edeb1c092603f8878e1.tar.xz netpbm-mirror-253dec3a445db66494451edeb1c092603f8878e1.zip |
quote file names in messages
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4615 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pnmtojpeg.c | 18 |
1 files changed, 9 insertions, 9 deletions
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; } } |