fix calls to mem.split

This commit is contained in:
Vincent Rischmann 2021-08-13 22:10:51 +02:00 committed by Felix Queißner
parent f5e5fb8370
commit 234b589d3c

View File

@ -146,7 +146,7 @@ fn getPathXdg(allocator: *std.mem.Allocator, arena: *std.heap.ArenaAllocator, fo
_ = user_dirs.readAll(&read) catch null orelse break :block;
const start = folder_spec.env.name.len + "=\"$HOME".len;
var line_it = std.mem.split(&read, "\n");
var line_it = std.mem.split(u8, &read, "\n");
while (line_it.next()) |line| {
if (std.mem.startsWith(u8, line, folder_spec.env.name)) {
const end = line.len - 1;