Skip to content

Commit f8f9f70

Browse files
authored
os: fix use of deprecated splitBackwards for Flatpak (ghostty-org#6733)
2 parents 550edd4 + 2e6a2a1 commit f8f9f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/passwd.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub fn get(alloc: Allocator) !Entry {
116116
};
117117

118118
// Shell and home are the last two entries
119-
var it = std.mem.splitBackwards(u8, std.mem.trimRight(u8, output, " \r\n"), ":");
119+
var it = std.mem.splitBackwardsScalar(u8, std.mem.trimRight(u8, output, " \r\n"), ':');
120120
result.shell = it.next() orelse null;
121121
result.home = it.next() orelse null;
122122
return result;

0 commit comments

Comments
 (0)