1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix pstree(1) vertical line drawing character.

This commit is contained in:
Jonas 'Sortie' Termansen 2017-04-14 19:53:05 +02:00
parent acc32ccb49
commit 0def94568a

View file

@ -98,7 +98,7 @@ static void pstree(pid_t pid, const char* prefix, bool continuation)
err(1, "malloc");
memcpy(new_prefix, prefix, prefix_length);
memcpy(new_prefix + prefix_length,
psst.ppid_next != -1 ? " | " : " ", 3);
psst.ppid_next != -1 ? " " : " ", 3);
for ( size_t i = 0; i < path_length; i++ )
new_prefix[prefix_length + 3 + i] = ' ';
new_prefix[prefix_length + 3 + path_length] = '\0';