2003-05-22  Roland McGrath  <roland@redhat.com>

	* process.c (print_affinitylist): Fix loop condition.
	Reported by Ian Wienand <ianw@gelato.unsw.edu.au>.
diff --git a/process.c b/process.c
index aeb3377..145122e 100644
--- a/process.c
+++ b/process.c
@@ -2643,7 +2643,7 @@
 {
     int first = 1;
     tprintf(" {");
-    while (len > sizeof (unsigned long)) {
+    while (len >= sizeof (unsigned long)) {
 	tprintf("%s %lx", first ? "" : ",", *list++);
 	first = 0;
 	len -= sizeof (unsigned long);