package: use safe-buffer

This commit is contained in:
Daniel Cousens 2017-05-23 15:14:08 +10:00 committed by Daniel Cousens
parent f1ab151c31
commit fe0ad81472
12 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,5 @@
var Buffer = require('safe-buffer').Buffer
function decode (buffer, maxLength, minimal) {
maxLength = maxLength || 4
minimal = minimal === undefined ? true : minimal