From c12ad17e17109c12426818c4cf2465cddff146f2 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 7 Oct 2009 13:50:11 +0000 Subject: Fixed parsing of hexadecimal arguments to bdftruncate. --- xorg-server/fonts.src/font-util/bdftruncate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xorg-server') 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(); } -- cgit v1.2.3