summaryrefslogtreecommitdiff
path: root/core/rfb.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/rfb.js')
-rw-r--r--core/rfb.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rfb.js b/core/rfb.js
index 3b52c29..876255b 100644
--- a/core/rfb.js
+++ b/core/rfb.js
@@ -1455,13 +1455,13 @@ export default class RFB extends EventTargetMixin {
this._sock.send([
(user.length >> 24) & 0xFF,
(user.length >> 16) & 0xFF,
- (user.legnth >> 8) & 0xFF,
+ (user.length >> 8) & 0xFF,
user.length & 0xFF
]);
this._sock.send([
(pass.length >> 24) & 0xFF,
(pass.length >> 16) & 0xFF,
- (pass.legnth >> 8) & 0xFF,
+ (pass.length >> 8) & 0xFF,
pass.length & 0xFF
]);
this._sock.sendString(user);