Skip to content

Commit

Permalink
fix bug in osstring_invalid_string (windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Feb 11, 2018
1 parent add17f2 commit da677e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arbitrary/_std/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn make_utf16_invalid(buf: &mut Vec<u16>, p: usize) {
#[cfg(target_os = "windows")]
fn osstring_invalid_string() -> BoxedStrategy<OsString> {
use std::os::windows::ffi::OsStringExt;
let size = 0..::std::u16::MAX as usize;
let size = 1..::std::u16::MAX as usize;
let vec_gen = ::collection::vec(..::std::u16::MAX, size.clone());
(size, vec_gen).prop_map(|(p, mut sbuf)| {
// Not quite a uniform distribution due to clamping,
Expand Down

0 comments on commit da677e9

Please sign in to comment.