From 2a802aaf635e9700942a04f698bce9e476c207e2 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 27 May 2014 16:15:20 +0400 Subject: [PATCH] qtest: fix hex2nib for capital characters Signed-off-by: Sergey Fedorov Reviewed-by: Markus Armbruster Reviewed-by: Stefan Hajnoczi Signed-off-by: Michael Tokarev --- qtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtest.c b/qtest.c index f9695a8ff6..04a6dc1f0f 100644 --- a/qtest.c +++ b/qtest.c @@ -148,7 +148,7 @@ static int hex2nib(char ch) } else if (ch >= 'a' && ch <= 'f') { return 10 + (ch - 'a'); } else if (ch >= 'A' && ch <= 'F') { - return 10 + (ch - 'a'); + return 10 + (ch - 'A'); } else { return -1; }