blob: 5e6718e70ed29263332074686f00346e31427b91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}
|