mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Merge pull request #2787 from ghostty-org/push-swmnnoxotlrw
termio: copy input command to avoid memory corruption
This commit is contained in:
@ -78,7 +78,7 @@ pub fn setup(
|
||||
try setupXdgDataDirs(alloc_arena, resource_dir, env);
|
||||
break :shell .{
|
||||
.shell = .elvish,
|
||||
.command = command,
|
||||
.command = try alloc_arena.dupe(u8, command),
|
||||
};
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ pub fn setup(
|
||||
try setupXdgDataDirs(alloc_arena, resource_dir, env);
|
||||
break :shell .{
|
||||
.shell = .fish,
|
||||
.command = command,
|
||||
.command = try alloc_arena.dupe(u8, command),
|
||||
};
|
||||
}
|
||||
|
||||
@ -94,7 +94,7 @@ pub fn setup(
|
||||
try setupZsh(resource_dir, env);
|
||||
break :shell .{
|
||||
.shell = .zsh,
|
||||
.command = command,
|
||||
.command = try alloc_arena.dupe(u8, command),
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user