diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2008-11-29 18:31:55 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2008-11-29 18:31:55 +0000 |
commit | 4347b2999c4cd88cb131a795cb3393350778dc6e (patch) | |
tree | 13d81f2d27d3485e04eef96bf89e80f2563e7f1c /sys-process/htop/files | |
parent | ppc stable, bug #248760 (diff) | |
download | gentoo-2-4347b2999c4cd88cb131a795cb3393350778dc6e.tar.gz gentoo-2-4347b2999c4cd88cb131a795cb3393350778dc6e.tar.bz2 gentoo-2-4347b2999c4cd88cb131a795cb3393350778dc6e.zip |
fix bug #245966
(Portage version: 2.2_rc13/cvs/Linux 2.6.24-gentoo-r5-1 i686)
Diffstat (limited to 'sys-process/htop/files')
-rw-r--r-- | sys-process/htop/files/htop-0.8.1-non-printable-char-filter.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-process/htop/files/htop-0.8.1-non-printable-char-filter.patch b/sys-process/htop/files/htop-0.8.1-non-printable-char-filter.patch new file mode 100644 index 000000000000..cfbafe84fca5 --- /dev/null +++ b/sys-process/htop/files/htop-0.8.1-non-printable-char-filter.patch @@ -0,0 +1,12 @@ +diff -u htop-0.8.1.orig/RichString.c htop-0.8.1/RichString.c +--- htop-0.8.1.orig/RichString.c 2008-03-09 03:23:49.000000000 +0100 ++++ htop-0.8.1/RichString.c 2008-11-29 19:07:29.284860473 +0100 +@@ -58,7 +58,7 @@ + int last = MIN(RICHSTRING_MAXLEN - 1, len + this->len); + for (int i = this->len, j = 0; i < last; i++, j++) { + memset(&this->chstr[i], 0, sizeof(this->chstr[i])); +- this->chstr[i].chars[0] = data[j]; ++ this->chstr[i].chars[0] = ((data[j] > 31) ? data[j] : '?' ); + this->chstr[i].attr = attrs; + } + this->chstr[last].chars[0] = 0; |