]> Zhao Yanbai Git Server - minix.git/commitdiff
Endpoint-enabled fix
authorBen Gras <ben@minix3.org>
Wed, 8 Mar 2006 13:10:35 +0000 (13:10 +0000)
committerBen Gras <ben@minix3.org>
Wed, 8 Mar 2006 13:10:35 +0000 (13:10 +0000)
commands/ps/ps.c

index 7a5a66945414757b2c65e85b876d9fe84386fdae..a7a16b191b0df965bbb5ba9a60400547d8c1994a 100644 (file)
@@ -211,7 +211,7 @@ Dev_t dev_nr;
 char *taskname(p_nr)
 int p_nr;
 {
-  return ps_proc[p_nr + nr_tasks].p_name;
+  return ps_proc[_ENDPOINT_P(p_nr) + nr_tasks].p_name;
 }
 
 /* Prrecv prints the RECV field for process with pstat buffer pointer bufp.