Finish conversion from 'binary' -> 'binary-parser'

* FTN packets
* SAUCE
This commit is contained in:
Bryan Ashby 2018-01-21 11:58:19 -07:00
parent c1f971d2d9
commit 8bfad971a1
5 changed files with 506 additions and 424 deletions

View file

@ -204,7 +204,7 @@ function debugEscapedString(s) {
}
function stringFromNullTermBuffer(buf, encoding) {
let nullPos = buf.indexOf(new Buffer( [ 0x00 ] ));
let nullPos = buf.indexOf( 0x00 );
if(-1 === nullPos) {
nullPos = buf.length;
}