summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2024-08-29 12:36:57 -0400
committerMichael Orlitzky <mjo@gentoo.org>2024-08-29 13:30:59 -0400
commit1c2a6e7fb4fb1d9205bca1556dd1a63b398d2244 (patch)
treef51430cb2b0ebf077c7e8289f74d00864031f927 /sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch
parentapp-editors/vscodium: drop 1.92.1.24225 (diff)
downloadgentoo-1c2a6e7fb4fb1d9205bca1556dd1a63b398d2244.tar.gz
gentoo-1c2a6e7fb4fb1d9205bca1556dd1a63b398d2244.tar.bz2
gentoo-1c2a6e7fb4fb1d9205bca1556dd1a63b398d2244.zip
sci-mathematics/gfan: fix startup crash, other improvements
AKA steal a few Debian patches. Bug: https://bugs.gentoo.org/717112 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch')
-rw-r--r--sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch b/sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch
new file mode 100644
index 000000000000..5e6718e70ed2
--- /dev/null
+++ b/sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch
@@ -0,0 +1,18 @@
+Description: Properly terminate while loop when finding application name.
+Author: Anders Nedergaard Jensen <jensen@math.au.dk>
+Origin: https://bugs.debian.org/950008#17
+Bug-Debian: https://bugs.debian.org/950008
+Forwarded: yes
+Last-Update: 2021-11-21
+
+--- a/src/application.cpp
++++ b/src/application.cpp
+@@ -26,7 +26,7 @@
+ {
+ l--;
+ }
+- while(p[l]!=0 && p[l]!='/');
++ while(l >= 0 && p[l]!='/');
+
+ return p+l+1;
+ }