diff options
author | marha <marha@users.sourceforge.net> | 2009-10-07 13:50:11 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-10-07 13:50:11 +0000 |
commit | c12ad17e17109c12426818c4cf2465cddff146f2 (patch) | |
tree | 60025e52be0981e3f2eb482664634622bec7509f | |
parent | 1aef314becdc3e84d62a52329824b66ba414b975 (diff) | |
download | vcxsrv-c12ad17e17109c12426818c4cf2465cddff146f2.tar.gz vcxsrv-c12ad17e17109c12426818c4cf2465cddff146f2.tar.bz2 vcxsrv-c12ad17e17109c12426818c4cf2465cddff146f2.zip |
Fixed parsing of hexadecimal arguments to bdftruncate.
-rw-r--r-- | xorg-server/fonts.src/font-util/bdftruncate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xorg-server/fonts.src/font-util/bdftruncate.c b/xorg-server/fonts.src/font-util/bdftruncate.c index 9bb204b31..a52730569 100644 --- a/xorg-server/fonts.src/font-util/bdftruncate.c +++ b/xorg-server/fonts.src/font-util/bdftruncate.c @@ -57,7 +57,7 @@ parse_threshold(const char *str) if (!isdigit((unsigned char)*str)) return 1; - if (str[0] == 0 && (str[1] == 'x' || str[1] == 'X')) + if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) base = 16; else base = 10; @@ -140,7 +140,7 @@ main(int argc, char **argv) if (argc != 1 || (opt_plus_w && opt_minus_w)) usage(); if (parse_threshold(*argv)) { - fprintf(stderr, "Illegal threshold %s", *argv); + fprintf(stderr, "Illegal threshold %s\n", *argv); usage(); } |