mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #4139 from matrix-org/travis/fix-qr-length
Ensure verification QR codes use the right buffer size
This commit is contained in:
commit
fe0bab7c81
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue