summaryrefslogtreecommitdiffstats
path: root/patches/procps-3.2.8/0068-top_username_parse.patch
blob: 0ebcf61565e175f8176d2e0801d6a71541c9addd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 9c1f9f99a5826be5069fc0ef66a8d3ada4e488b2 Mon Sep 17 00:00:00 2001
From: http://ftp.de.debian.org/debian/pool/main/p/procps/procps_3.2.8-8.debian.tar.gz <info@debian.org>
Date: Fri, 19 Mar 2010 21:58:47 +0100
Subject: [PATCH 68/70] top_username_parse

---
 top.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/top.c b/top.c
index e194244..62f4077 100644
--- a/top.c
+++ b/top.c
@@ -1924,7 +1924,7 @@ static void parse_args (char **args)
                   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;
             case 'U':
-- 
1.7.0