aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Fedorov <serge.fdrv@gmail.com>2014-05-27 16:15:20 +0400
committerMichael Tokarev <mjt@tls.msk.ru>2014-06-10 19:39:34 +0400
commit2a802aaf635e9700942a04f698bce9e476c207e2 (patch)
treeca1479cfe482444b0e272da64ad8f8db73a6fe4b
parentef18c2f54ee6ac3df3e8617958bcdb53ee9e8e06 (diff)
downloadqemu-2a802aaf635e9700942a04f698bce9e476c207e2.zip
qemu-2a802aaf635e9700942a04f698bce9e476c207e2.tar.gz
qemu-2a802aaf635e9700942a04f698bce9e476c207e2.tar.bz2
qtest: fix hex2nib for capital characters
Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--qtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtest.c b/qtest.c
index f9695a8..04a6dc1 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;
}