parent
8d918a862b
commit
566ade47d6
@ -1,22 +0,0 @@
|
|||||||
From 0b70439316b4e4608c0916317ded7e6e56982de6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hisham <hisham@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);
|
|
@ -1,25 +0,0 @@
|
|||||||
From 0e3cf6975f96291fa203332aad9e44086ff8f2f2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hisham <hisham@gobolinux.org>
|
|
||||||
Date: Fri, 12 Feb 2016 23:33:53 -0200
|
|
||||||
Subject: [PATCH] Fix crash when emptying column. Closes #381.
|
|
||||||
|
|
||||||
---
|
|
||||||
MetersPanel.c | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/MetersPanel.c b/MetersPanel.c
|
|
||||||
index bdbe83e..302b6d1 100644
|
|
||||||
--- a/MetersPanel.c
|
|
||||||
+++ b/MetersPanel.c
|
|
||||||
@@ -50,7 +50,10 @@ static void MetersPanel_delete(Object* object) {
|
|
||||||
void MetersPanel_setMoving(MetersPanel* this, bool moving) {
|
|
||||||
Panel* super = (Panel*) this;
|
|
||||||
this->moving = moving;
|
|
||||||
- ((ListItem*)Panel_getSelected(super))->moving = moving;
|
|
||||||
+ ListItem* selected = (ListItem*)Panel_getSelected(super);
|
|
||||||
+ if (selected) {
|
|
||||||
+ selected->moving = moving;
|
|
||||||
+ }
|
|
||||||
if (!moving) {
|
|
||||||
Panel_setSelectionColor(super, CRT_colors[PANEL_SELECTION_FOCUS]);
|
|
||||||
Panel_setDefaultBar(super);
|
|
Loading…
Reference in new issue