Description: Fix '-U' argument parse
Author: Pan Yongzhi <panyongzhi@gmail.com>
Index: procps-3.2.8/top.c
===================================================================
--- procps-3.2.8.orig/top.c	2011-03-24 14:50:56.000000000 +0800
+++ procps-3.2.8/top.c	2011-03-24 14:55:37.000000000 +0800
@@ -1933,11 +1933,11 @@
                   if (selection_type /* && selection_type != 'U' */) std_err("conflicting process selection");
                   if (cp[1]) cp++;
                   else if (*args) cp = *args++;
-                  else std_err("-u missing name");
+                  else std_err("-U missing name");
                   errmsg = parse_uid(cp, &selection_uid);
                   if (errmsg) std_err(errmsg);
                   selection_type = 'U';
-                  cp += snprintf(Curwin->colusrnam, USRNAMSIZ-1, "%s", cp); // FIXME: junk
+                  cp += snprintf(Curwin->colusrnam, USRNAMSIZ-1, "%s", cp)-1; // FIXME: junk
                } while(0);
                break;
             default :
