mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +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);
|
try setupXdgDataDirs(alloc_arena, resource_dir, env);
|
||||||
break :shell .{
|
break :shell .{
|
||||||
.shell = .elvish,
|
.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);
|
try setupXdgDataDirs(alloc_arena, resource_dir, env);
|
||||||
break :shell .{
|
break :shell .{
|
||||||
.shell = .fish,
|
.shell = .fish,
|
||||||
.command = command,
|
.command = try alloc_arena.dupe(u8, command),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ pub fn setup(
|
|||||||
try setupZsh(resource_dir, env);
|
try setupZsh(resource_dir, env);
|
||||||
break :shell .{
|
break :shell .{
|
||||||
.shell = .zsh,
|
.shell = .zsh,
|
||||||
.command = command,
|
.command = try alloc_arena.dupe(u8, command),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user