os: fix use of deprecated splitBackwards for Flatpak (#6733)

pull/6658/head
Leah Amelia Chen 2025-03-15 08:02:41 +01:00 committed by GitHub
commit f8f9f7041a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;