package: use safe-buffer
This commit is contained in:
parent
f1ab151c31
commit
fe0ad81472
12 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
var Buffer = require('safe-buffer').Buffer
|
||||
|
||||
function decode (buffer, maxLength, minimal) {
|
||||
maxLength = maxLength || 4
|
||||
minimal = minimal === undefined ? true : minimal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue