diff --git a/src/components/views/elements/crypto/VerificationQRCode.js b/src/components/views/elements/crypto/VerificationQRCode.js index 88f9608138..b7232048e5 100644 --- a/src/components/views/elements/crypto/VerificationQRCode.js +++ b/src/components/views/elements/crypto/VerificationQRCode.js @@ -126,7 +126,7 @@ export default class VerificationQRCode extends React.PureComponent { buf = Buffer.concat([buf, tmpBuf]); }; const appendInt = (i: number) => { - const tmpBuf = Buffer.alloc(4); + const tmpBuf = Buffer.alloc(2); tmpBuf.writeInt8(i, 0); buf = Buffer.concat([buf, tmpBuf]); };