From 2e6a2a148ff1b6b34dbfe31a610b8f9974883056 Mon Sep 17 00:00:00 2001 From: Leorize Date: Fri, 14 Mar 2025 20:12:42 -0500 Subject: [PATCH] os: fix use of deprecated splitBackwards for Flatpak --- src/os/passwd.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/passwd.zig b/src/os/passwd.zig index 4bbd55a4d..c12214ee4 100644 --- a/src/os/passwd.zig +++ b/src/os/passwd.zig @@ -116,7 +116,7 @@ pub fn get(alloc: Allocator) !Entry { }; // Shell and home are the last two entries - var it = std.mem.splitBackwards(u8, std.mem.trimRight(u8, output, " \r\n"), ":"); + var it = std.mem.splitBackwardsScalar(u8, std.mem.trimRight(u8, output, " \r\n"), ':'); result.shell = it.next() orelse null; result.home = it.next() orelse null; return result;