Skip to content

Commit

Permalink
fix(examples): lengthen the third example string
Browse files Browse the repository at this point in the history
The command line for running the example via cargo run is "target/debug/examples/killmyargv", which has a byte length of 32. We need an example to show the behavior of each OS when writing to environ with a null character in the middle.
  • Loading branch information
unknowndevQwQ committed Feb 7, 2025
1 parent 5e4e1bb commit 48e823c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/killmyargv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn main() {
printenv();
pause!();

mem.set(b"aaaaaaaaaaaaaaaaaaaa\0bbbbb12\088");
mem.set(b"aaaaaaaaaaaaaaaaaaaa\0bbbbb12\09988");
println!("set le argv");
printenv();
pause!();
Expand Down

0 comments on commit 48e823c

Please sign in to comment.