From 95dfefbe139f9f7c6c34a42ca5d6ae89a419429d Mon Sep 17 00:00:00 2001 From: Denis Ahrens Date: Thu, 31 Jan 2013 18:36:00 +0100 Subject: [PATCH] correctly read out int values, this fixes the wrong number of keys displayed and all other values which are ints with more than one byte --- smc-command/smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smc-command/smc.c b/smc-command/smc.c index ff1e48b..e8add92 100644 --- a/smc-command/smc.c +++ b/smc-command/smc.c @@ -37,7 +37,7 @@ UInt32 _strtoul(char *str, int size, int base) if (base == 16) total += str[i] << (size - 1 - i) * 8; else - total += (unsigned char) (str[i] << (size - 1 - i) * 8); + total += ((unsigned char) (str[i]) << (size - 1 - i) * 8); } return total; }