diff options
author | Seppia <nonso@insicuri.net> | 2016-12-07 19:02:37 +0100 |
---|---|---|
committer | Seppia <nonso@insicuri.net> | 2016-12-07 19:02:37 +0100 |
commit | da46edf7b8de417d5aa5e57af1b5efa3781ca74d (patch) | |
tree | 03a7de2c23ead6a69e5d267707a6f501d7660452 /src/onetimebluh.c | |
parent | 913436c760a4acb80fb92614d56ff59676666ec9 (diff) | |
download | onetimebluh-da46edf7b8de417d5aa5e57af1b5efa3781ca74d.tar.gz onetimebluh-da46edf7b8de417d5aa5e57af1b5efa3781ca74d.tar.bz2 onetimebluh-da46edf7b8de417d5aa5e57af1b5efa3781ca74d.zip |
fixed for variable lenght
Diffstat (limited to 'src/onetimebluh.c')
-rw-r--r-- | src/onetimebluh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c index e67b4f2..9991dfe 100644 --- a/src/onetimebluh.c +++ b/src/onetimebluh.c @@ -316,7 +316,7 @@ void bluh(int c, char* mess, char* outp, char* ch) { int i, j; - for (i = 0; i < len; i ++) { + for (i = 0; i < (len / 8); i ++) { for (j = 0; j < 8; j ++) { if (bits[8 * i + j] == b) { comp[i] |= 1 << (7 - j); |