Skip to content

Commit a4b9dd7

Browse files
committed
do not use array multiplication
See ziglang/zig#24738
1 parent 33f2563 commit a4b9dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsp.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ test "bufPrintLogMessage - avoid buffer overflow with escape codes" {
17161716
const json_message = bufPrintLogMessage(
17171717
&buffer,
17181718
@enumFromInt(42),
1719-
"\x00" ** 128,
1719+
&@as(@TypeOf(buffer), @splat('\x00')),
17201720
.{},
17211721
);
17221722

0 commit comments

Comments
 (0)