Date: Sunday, March 13, 2016 @ 23:32:21 Author: dreisner Revision: 261418
upgpkg: htop 2.0.1-1 Modified: htop/trunk/PKGBUILD Deleted: htop/trunk/0001-Fix-buffer-reuse.patch -----------------------------+ 0001-Fix-buffer-reuse.patch | 25 ------------------------- PKGBUILD | 16 ++++------------ 2 files changed, 4 insertions(+), 37 deletions(-) Deleted: 0001-Fix-buffer-reuse.patch =================================================================== --- 0001-Fix-buffer-reuse.patch 2016-03-13 19:35:10 UTC (rev 261417) +++ 0001-Fix-buffer-reuse.patch 2016-03-13 22:32:21 UTC (rev 261418) @@ -1,25 +0,0 @@ -From 0b70439316b4e4608c0916317ded7e6e56982de6 Mon Sep 17 00:00:00 2001 -From: Hisham <his...@gobolinux.org> -Date: Sat, 13 Feb 2016 02:18:28 -0200 -Subject: [PATCH] Fix buffer reuse. - ---- - linux/LinuxProcessList.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c -index 591210e..ec643ab 100644 ---- a/linux/LinuxProcessList.c -+++ b/linux/LinuxProcessList.c -@@ -446,7 +446,7 @@ static void LinuxProcessList_readOomData(LinuxProcess* process, const char* dirn - } - - static void setCommand(Process* process, const char* command, int len) { -- if (process->comm && process->commLen <= len) { -+ if (process->comm && process->commLen >= len) { - strncpy(process->comm, command, len + 1); - } else { - free(process->comm); --- -2.7.1 - Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-03-13 19:35:10 UTC (rev 261417) +++ PKGBUILD 2016-03-13 22:32:21 UTC (rev 261418) @@ -4,8 +4,8 @@ # Contributor: Daniel J Griffiths <ghost1...@archlinux.us> pkgname=htop -pkgver=2.0.0 -pkgrel=2 +pkgver=2.0.1 +pkgrel=1 pkgdesc="Interactive process viewer" arch=('i686' 'x86_64') url="http://hisham.hm/htop/" @@ -15,17 +15,9 @@ optdepends=('lsof: show files opened by a process' 'strace: attach to a running process') options=('!emptydirs') -source=("http://hisham.hm/$pkgname/releases/$pkgver/$pkgname-$pkgver.tar.gz" - "0001-Fix-buffer-reuse.patch") -md5sums=('06f76c7d644ce8ae611c9feb10439a30' - '487c286d714139dca6f27bf5f79a0e1f') +source=("http://hisham.hm/$pkgname/releases/$pkgver/$pkgname-$pkgver.tar.gz") +md5sums=('f75fe92b4defaa80d99109830f34b5e2') -prepare() { - cd "$pkgname-$pkgver" - - patch -Np1 <../0001-Fix-buffer-reuse.patch -} - build() { cd "$pkgname-$pkgver"