Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/htop/files: htop-0.8.1-non-printable-char-filter.patch
Date: Sat, 29 Nov 2008 18:31:56
Message-Id: E1L6Ubj-00065p-Aj@stork.gentoo.org
1 wschlich 08/11/29 18:31:55
2
3 Added: htop-0.8.1-non-printable-char-filter.patch
4 Log:
5 fix bug #245966
6 (Portage version: 2.2_rc13/cvs/Linux 2.6.24-gentoo-r5-1 i686)
7
8 Revision Changes Path
9 1.1 sys-process/htop/files/htop-0.8.1-non-printable-char-filter.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/htop/files/htop-0.8.1-non-printable-char-filter.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/htop/files/htop-0.8.1-non-printable-char-filter.patch?rev=1.1&content-type=text/plain
13
14 Index: htop-0.8.1-non-printable-char-filter.patch
15 ===================================================================
16 diff -u htop-0.8.1.orig/RichString.c htop-0.8.1/RichString.c
17 --- htop-0.8.1.orig/RichString.c 2008-03-09 03:23:49.000000000 +0100
18 +++ htop-0.8.1/RichString.c 2008-11-29 19:07:29.284860473 +0100
19 @@ -58,7 +58,7 @@
20 int last = MIN(RICHSTRING_MAXLEN - 1, len + this->len);
21 for (int i = this->len, j = 0; i < last; i++, j++) {
22 memset(&this->chstr[i], 0, sizeof(this->chstr[i]));
23 - this->chstr[i].chars[0] = data[j];
24 + this->chstr[i].chars[0] = ((data[j] > 31) ? data[j] : '?' );
25 this->chstr[i].attr = attrs;
26 }
27 this->chstr[last].chars[0] = 0;