fixed decode

This commit is contained in:
bwhitn 2017-12-15 00:53:09 -05:00
parent caae0ec5ca
commit 946d165aa0

View File

@ -47,8 +47,8 @@ const NetBIOS = {
offset = args[0]; offset = args[0];
for (let i = 0; i < input.length; i += 2) { for (let i = 0; i < input.length; i += 2) {
output.push(((input[i] - offset) << 4) | output.push((((input[i] & 0xff) - offset) << 4) |
((input[i + 1] - offset) & 0xf)); (((input[i + 1] & 0xff) - offset) & 0xf));
} }
return output; return output;