mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 15:01:13 +02:00
Merge pull request #4140 from matrix-org/travis/fix-qr-length
Use the right function for creating binary verification QR codes
This commit is contained in:
commit
b45a1c129f
@ -127,7 +127,7 @@ export default class VerificationQRCode extends React.PureComponent {
|
||||
};
|
||||
const appendInt = (i: number) => {
|
||||
const tmpBuf = Buffer.alloc(2);
|
||||
tmpBuf.writeInt8(i, 0);
|
||||
tmpBuf.writeInt16BE(i, 0);
|
||||
buf = Buffer.concat([buf, tmpBuf]);
|
||||
};
|
||||
const appendStr = (s: string, enc: string, withLengthPrefix = true) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user