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:
parent
acc32ccb49
commit
0def94568a
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue