From: Dana Jansens Date: Wed, 12 May 2010 03:31:03 +0000 (-0400) Subject: parse number values write in a hex string in obxprop X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=dd623f5b2f20d9e24794dddc4aca6a6ae0ea67a3;p=chaz%2Fopenbox parse number values write in a hex string in obxprop --- 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;