summaryrefslogtreecommitdiff
path: root/index.htm
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-01-16 23:02:10 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-01-16 23:02:10 +0100
commitfe0f57ce735297ae6267bd0b78aff38abcf94379 (patch)
tree7d24fe62b8b4bc7ead36a7ebf9f9af43ebc65117 /index.htm
parent308a1cf24208816b92ab830ec082757ca30738c9 (diff)
downloadreduced_system_layer-fe0f57ce735297ae6267bd0b78aff38abcf94379.zip
Fix title buffer - web
Diffstat (limited to 'index.htm')
-rw-r--r--index.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.htm b/index.htm
index 4542dc7..437b932 100644
--- a/index.htm
+++ b/index.htm
@@ -82,11 +82,11 @@
let title_buffer;
if (title_address != 0) {
- let bytes = new Uint8Array(this.memory_buffer);
- let title_len = 0;
+ let bytes = new Uint8Array(this.memory_buffer);
+ let title_len = 0;
while (bytes[title_address + title_len] != 0)
++title_len;
- let title_buffer = new ArrayBuffer(title_len);
+ title_buffer = new ArrayBuffer(title_len);
new Uint8Array(title_buffer).set(bytes.subarray(title_address, title_address + title_len));
} else
title_buffer = undefined;