mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
Finish conversion from 'binary' -> 'binary-parser'
* FTN packets * SAUCE
This commit is contained in:
parent
c1f971d2d9
commit
8bfad971a1
5 changed files with 506 additions and 424 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue