From dd623f5b2f20d9e24794dddc4aca6a6ae0ea67a3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 11 May 2010 23:31:03 -0400 Subject: [PATCH] parse number values write in a hex string in obxprop --- tools/obxprop/obxprop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/obxprop/obxprop.c b/tools/obxprop/obxprop.c index 071ae3f4..e4f6ff0e 100644 --- a/tools/obxprop/obxprop.c +++ b/tools/obxprop/obxprop.c @@ -28,9 +28,9 @@ gint parse_hex(gchar *s) { if (*s >= '0' && *s <='9') add = *s-'0'; else if (*s >= 'A' && *s <='F') - add = *s-'A'; + add = *s-'A'+10; else if (*s >= 'a' && *s <='f') - add = *s-'a'; + add = *s-'a'+10; else break; -- 2.45.2