Fix horrific bug!
This commit is contained in:
parent
9fd13f3a43
commit
e9382ebea2
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ exports.reverseBuffer = reverseBuffer;
|
|||
function cloneBuffer(buffer) {
|
||||
const clone = Buffer.alloc(buffer.length);
|
||||
buffer.copy(clone);
|
||||
return buffer;
|
||||
return clone;
|
||||
}
|
||||
exports.cloneBuffer = cloneBuffer;
|
||||
/**
|
||||
|
|
|
@ -51,7 +51,7 @@ export function reverseBuffer(buffer: Buffer): Buffer {
|
|||
export function cloneBuffer(buffer: Buffer): Buffer {
|
||||
const clone = Buffer.alloc(buffer.length);
|
||||
buffer.copy(clone);
|
||||
return buffer;
|
||||
return clone;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue