about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-09-05 01:23:01 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-09-05 01:23:01 +0000
commitd21bd279be4f70e9cdf4369691dd9e82fadfa5c4 (patch)
tree8f84589d2861f16685e6641955b6cdcad5a249ce
parentc089f273c9fb5f9a293037e98a210f2a2ec01001 (diff)
downloadnetpbm-mirror-d21bd279be4f70e9cdf4369691dd9e82fadfa5c4.tar.gz
netpbm-mirror-d21bd279be4f70e9cdf4369691dd9e82fadfa5c4.tar.xz
netpbm-mirror-d21bd279be4f70e9cdf4369691dd9e82fadfa5c4.zip
Fix error message
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4931 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--doc/HISTORY3
-rw-r--r--lib/libpamcolor.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index a8ba1ce7..7f5da236 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -11,6 +11,9 @@ not yet  BJH  Release 11.08.00
               instead of generating an invalid or wrong color.  Broken in
               primordial Netpbm.
 
+              libnetpbm color name parsing: Fix error message for invalid
+              rgb-<MAXVAL> color name.
+
 24.06.28 BJH  Release 11.07.00
 
               libnetpbm: Fix double free crash when memory allocation via
diff --git a/lib/libpamcolor.c b/lib/libpamcolor.c
index d04136ba..19cf7238 100644
--- a/lib/libpamcolor.c
+++ b/lib/libpamcolor.c
@@ -202,7 +202,7 @@ parseInteger(const char * const colorname,
     if (rc != 4)
         pm_error("invalid rgb- color specifier '%s' - "
                  "Does not have form "
-                 "rgb-<MAXVAL>:<RED>:<GRN>:<BLU>, "
+                 "rgb-<MAXVAL>/<RED>/<GRN>/<BLU>, "
                  "where <MAXVAL>, <RED>, <GRN>, and <BLU> are "
                  "unsigned integers",
                  colorname);