Mercurial > hg > dmlib
changeset 2496:6a6ed3eeded5
Fix parsing of some arguments to -S option.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 28 Apr 2020 20:55:34 +0300 |
parents | 88c68a03c493 |
children | ea5929b04a26 |
files | tools/gfxconv.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gfxconv.c Tue Apr 28 20:55:10 2020 +0300 +++ b/tools/gfxconv.c Tue Apr 28 20:55:34 2020 +0300 @@ -920,7 +920,7 @@ optSpec.scaleY = tmpUInt2; if (sep == '*' && - dmParseIntValWithSep(&tmpOpt, &tmpUInt, &sep, 0)) + dmParseIntValWithSep(&tmpOpt, &tmpUInt, &sep, "")) { optSpec.scaleX *= tmpUInt; optSpec.scaleY *= tmpUInt; @@ -943,7 +943,7 @@ if (error) { dmErrorMsg( - "Invalid scale option value '%s', should be <n>, <w>:<h> or <w>:<h>*<n>.\n", + "Invalid scale option value '%s', should be [*]<n> or or <w>:<h>[*<n>].\n", optArg); return FALSE; }