diff options
author | 2023-03-28 18:23:50 -0700 | |
---|---|---|
committer | 2023-03-28 18:23:50 -0700 | |
commit | b76384351c55917692a9dc3b7f08f771a55b3fa1 (patch) | |
tree | 74a188ed15dac0f194e3e72fed4dd719ae4c601b /src/string_immutable.zig | |
parent | 0a914902269ebb1f5612385bd8b65aa1de4db71e (diff) | |
download | bun-b76384351c55917692a9dc3b7f08f771a55b3fa1.tar.gz bun-b76384351c55917692a9dc3b7f08f771a55b3fa1.tar.zst bun-b76384351c55917692a9dc3b7f08f771a55b3fa1.zip |
More bug fixes (#2486)
* readline_promises test fix
* fix `escapeHTML` for baseline builds
* fs test fixes, use `tmpdir()`
* add paths for `resolve.test.js`
* isError with toString symbol and error prototype
* comment about `toString`
* skip async macro transform
* test cleanup, skip stack format test
* readline undo and redo fix
* capture error from readline keypress
* Update tcp-server.test.ts
* use `removefileat` for recursive rmdir
* use strong for `signal.reason`
* initialize `m_flags`
* directory with file fs test
* recursive option
* import expect
* could be less than
* move abort signal tests to another process
* fix typecheck
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r-- | src/string_immutable.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index 321abb9f7..f4c6fae07 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -2146,7 +2146,7 @@ pub fn escapeHTMLForLatin1Input(allocator: std.mem.Allocator, latin1: []const u8 buf = try std.ArrayList(u8).initCapacity(allocator, latin1.len + @as(usize, Scalar.lengths[c])); const copy_len = @ptrToInt(ptr) - @ptrToInt(latin1.ptr); - @memcpy(buf.items.ptr, latin1.ptr, copy_len - 1); + @memcpy(buf.items.ptr, latin1.ptr, copy_len); buf.items.len = copy_len; any_needs_escape = true; break :scan_and_allocate_lazily; |