diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-03-14 17:11:00 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-03-14 17:11:00 +0000 |
commit | c586f66b8951a25e6b8390e3cb7b7b438599a417 (patch) | |
tree | e3e43c0944ff05d7af6c7cd3ff06ed4bf9e006c4 /converter/other | |
parent | 35d0846cc1a1793967a7b4e2c508b1fd47acccee (diff) | |
download | netpbm-mirror-c586f66b8951a25e6b8390e3cb7b7b438599a417.tar.gz netpbm-mirror-c586f66b8951a25e6b8390e3cb7b7b438599a417.tar.xz netpbm-mirror-c586f66b8951a25e6b8390e3cb7b7b438599a417.zip |
Fix -rgb/-chroma option parsing: 8 components, not 6
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4512 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pamtopng.c | 4 | ||||
-rw-r--r-- | converter/other/pnmtopng.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/converter/other/pamtopng.c b/converter/other/pamtopng.c index b61ab17b..088db3c8 100644 --- a/converter/other/pamtopng.c +++ b/converter/other/pamtopng.c @@ -84,9 +84,9 @@ parseChromaOpt(const char * const chromaOpt, &chromaP->gx, &chromaP->gy, &chromaP->bx, &chromaP->by); - if (count != 6) + if (count != 8) pm_error("Invalid syntax for the -rgb option value '%s'. " - "Should be 6 floating point number: " + "Should be 8 floating point numbers: " "x and y for each of white, red, green, and blue", chromaOpt); } diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c index 23bd7d66..2230d226 100644 --- a/converter/other/pnmtopng.c +++ b/converter/other/pnmtopng.c @@ -187,9 +187,9 @@ parseRgbOpt(const char * const rgbOpt, &rgbP->gx, &rgbP->gy, &rgbP->bx, &rgbP->by); - if (count != 6) + if (count != 8) pm_error("Invalid syntax for the -rgb option value '%s'. " - "Should be 6 floating point number: " + "Should be 8 floating point numbers: " "x and y for each of white, red, green, and blue", rgbOpt); } |