2003-02-24  Roland McGrath  <roland@redhat.com>

	* process.c (sys_getresgid): Fix typos in argument access.
diff --git a/process.c b/process.c
index e582424..8a36b6d 100644
--- a/process.c
+++ b/process.c
@@ -1119,12 +1119,12 @@
 				tprintf("%#lx, ", tcp->u_arg[0]);
 			else
 				tprintf("rgid %lu, ", (unsigned long) gid);
-			if (umove(tcp, tcp->u_arg[0], &gid) < 0)
-				tprintf("%#lx, ", tcp->u_arg[0]);
+			if (umove(tcp, tcp->u_arg[1], &gid) < 0)
+				tprintf("%#lx, ", tcp->u_arg[1]);
 			else
 				tprintf("egid %lu, ", (unsigned long) gid);
-			if (umove(tcp, tcp->u_arg[0], &gid) < 0)
-				tprintf("%#lx", tcp->u_arg[0]);
+			if (umove(tcp, tcp->u_arg[2], &gid) < 0)
+				tprintf("%#lx", tcp->u_arg[2]);
 			else
 				tprintf("sgid %lu", (unsigned long) gid);
 		}