Skip to content

Commit be173c1

Browse files
committed
Include all args, even program name
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 76130a0 commit be173c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uefi/src/proto/shell_params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl ShellParameters {
3434
pub fn get_args(&self) -> Vec<String> {
3535
let mut args = vec![];
3636
// Skip first one, which is the executable's name
37-
for i in 1..self.argc {
37+
for i in 0..self.argc {
3838
let str = unsafe { CStr16::from_ptr(*self.argv.add(i)) };
3939
let string = str.to_string();
4040
args.push(string);

0 commit comments

Comments
 (0)