aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/string_immutable.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig
index 9ca60c860..c967544c7 100644
--- a/src/string_immutable.zig
+++ b/src/string_immutable.zig
@@ -1499,7 +1499,7 @@ pub fn toUTF8ListWithType(list_: std.ArrayList(u8), comptime Type: type, utf16:
if (bun.FeatureFlags.use_simdutf and comptime Type == []const u16) {
var list = list_;
const length = bun.simdutf.length.utf8.from.utf16.le(utf16);
- try list.ensureTotalCapacityPrecise(length);
+ try list.ensureTotalCapacityPrecise(length + 16);
return convertUTF16ToUTF8(list, Type, utf16);
}