From bc0657f7159d0b01373ecb59afc426b98a172b1e Mon Sep 17 00:00:00 2001 From: Parabola Date: Thu, 1 Dec 2011 14:10:29 +0000 Subject: Thu Dec 1 14:10:27 UTC 2011 --- extra/htop/fix-segfault-small-terminal.patch | 24 ------------------------ extra/htop/fix-sort-key-bug.patch | 15 --------------- 2 files changed, 39 deletions(-) delete mode 100644 extra/htop/fix-segfault-small-terminal.patch delete mode 100644 extra/htop/fix-sort-key-bug.patch (limited to 'extra/htop') diff --git a/extra/htop/fix-segfault-small-terminal.patch b/extra/htop/fix-segfault-small-terminal.patch deleted file mode 100644 index c55146492..000000000 --- a/extra/htop/fix-segfault-small-terminal.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- trunk/Meter.c 2011/08/26 20:52:35 229 -+++ trunk/Meter.c 2011/08/26 20:55:09 230 -@@ -264,13 +264,19 @@ - - w--; - x++; -- char bar[w]; -+ -+ if (w < 1) { -+ attrset(CRT_colors[RESET_COLOR]); -+ return; -+ } -+ char bar[w + 1]; - - int blockSizes[10]; - for (int i = 0; i < w; i++) - bar[i] = ' '; - -- sprintf(bar + (w-strlen(buffer)), "%s", buffer); -+ const size_t barOffset = w - MIN(strlen(buffer), w); -+ snprintf(bar + barOffset, w - barOffset + 1, "%s", buffer); - - // First draw in the bar[] buffer... - double total = 0.0; diff --git a/extra/htop/fix-sort-key-bug.patch b/extra/htop/fix-sort-key-bug.patch deleted file mode 100644 index 41a2dd377..000000000 --- a/extra/htop/fix-sort-key-bug.patch +++ /dev/null @@ -1,15 +0,0 @@ -From: Roman Kosenko -Date: Thu, 10 Mar 2011 16:23:53 +0200 -Subject: [PATCH] Fix stupid bug with --sort-key - ---- htop.c.old 2010-11-24 20:45:38.000000000 +0200 -+++ htop.c 2011-03-10 16:32:18.473716667 +0200 -@@ -282,7 +282,7 @@ - printVersionFlag(); - break; - case 's': -- if (strcmp(optarg, "help")) { -+ if (!strcmp(optarg, "help")) { - for (int j = 1; j < LAST_PROCESSFIELD; j++) - printf ("%s\n", Process_fieldNames[j]); - exit(0); -- cgit v1.2.3-54-g00ecf