Fix off-by-one error :|

This commit is contained in:
jD91mZM2
2018-08-12 21:50:22 +02:00
parent 1c4e8852dd
commit d5f85906cb
+1 -1
View File
@@ -54,7 +54,7 @@ impl Stack {
}
fn envp(&self) -> *const *const u8 {
unsafe { self.argv().offset(self.argc() + 1) }
unsafe { self.argv().offset(self.argc()) }
}
}