aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-14 03:31:33 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-14 03:31:33 +0100
commit7bdf1f3a154f6b212f3cb891caa7fc1df7492d0d (patch)
treea02761d855a1ad76edd4af1841f8666aabd04bb2 /src
parentUpdate todo + fix potential dubble free on error + add support for --hex-input (diff)
downloadsha3sum-7bdf1f3a154f6b212f3cb891caa7fc1df7492d0d.tar.gz
sha3sum-7bdf1f3a154f6b212f3cb891caa7fc1df7492d0d.tar.bz2
sha3sum-7bdf1f3a154f6b212f3cb891caa7fc1df7492d0d.tar.xz
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 1f7e6b5..2598461 100644
--- a/src/common.c
+++ b/src/common.c
@@ -102,7 +102,7 @@ static int generalised_sum_fd_hex(int fd, libkeccak_state_t* restrict state,
{
if (c = chunk[r_ptr++], c <= ' ')
continue;
- buf = (buf << 4) | ((c & 15) + (c > '9' ? 0 : 0));
+ buf = (buf << 4) | ((c & 15) + (c > '9' ? 9 : 0));
if ((even ^= 1))
chunk[w_ptr++] = buf;
}