Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix ssl truncate bug
  • Loading branch information
youknowone committed Oct 25, 2025
commit 666381ab15b984304ffc04c3a65de35fe9456f76
2 changes: 1 addition & 1 deletion stdlib/src/ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ mod _ssl {
let ret = match inner_buffer {
Either::A(_buf) => vm.ctx.new_int(count).into(),
Either::B(mut buf) => {
buf.truncate(n);
buf.truncate(count);
buf.shrink_to_fit();
vm.ctx.new_bytes(buf).into()
}
Expand Down