commit | 22827870fa249246a828bc9d6645b84956aa9dd9 | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Mon May 08 21:39:04 2017 +0100 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Mon May 08 21:39:04 2017 +0100 |
tree | e2523b4656c4ccd7d5007a54a8c2e4068939b6bc | |
parent | 4583dd9e42f88b61c6f2e574bb48b870d2f9c866 [diff] |
Fix botch introduced by 561441320f0cb67ea97f81c59332da5c6d14b494
diff --git a/src/util.c b/src/util.c index 74e6ec6..9ed1748 100644 --- a/src/util.c +++ b/src/util.c
@@ -503,7 +503,7 @@ return -1; out[i] = strtol(&in[j*2], NULL, 16); mask = mask << 1; - if (i++ == maxlen) + if (++i == maxlen) break; if (j < bytes - 1) in[(j+1)*2] = sav;