aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-usage/79.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnome-usage/79.patch')
-rw-r--r--community/gnome-usage/79.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/community/gnome-usage/79.patch b/community/gnome-usage/79.patch
deleted file mode 100644
index 117910de8f..0000000000
--- a/community/gnome-usage/79.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Upstream: Yes, https://gitlab.gnome.org/GNOME/gnome-usage/-/merge_requests/79
-From 8d56db29248ef9e056a58eedee7d99dcc1efa0e6 Mon Sep 17 00:00:00 2001
-From: Rasmus Thomsen <oss@cogitri.dev>
-Date: Sat, 12 Sep 2020 18:33:28 +0200
-Subject: [PATCH] process: make sure we don't read past GTop.get_proc_argv's
- return value's length
-
-If a process doesn't have any arguments passed to it its argv will only
-have a size of 1 - its own name
-
-fixes #80
----
- src/process.vala | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/process.vala b/src/process.vala
-index 1f0722f..804c791 100644
---- a/src/process.vala
-+++ b/src/process.vala
-@@ -106,7 +106,7 @@ namespace Usage
- /* cmd is most likely a truncated version, therefore
- * we check the first two arguments of the full argv
- * vector if they match cmd and if so, use that */
-- for (int i = 0; i < 2; i++) {
-+ for (int i = 0; i < (args.length > 1 ? 2 : args.length); i++) {
- if (args[i] == null)
- continue;
-
---
-GitLab
-