mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-21 10:51:04 +00:00
Fix status command not working for abbreviated process names
This commit is contained in:
parent
5ebd62e8d8
commit
a1347ffc90
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2019-09-25 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* EcCommand.m:
|
||||
Fix bugs that prevent the status command from working for
|
||||
abbreviated process names.
|
||||
|
||||
2019-08-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* EcCommand.m:
|
||||
|
|
|
@ -177,12 +177,12 @@ static NSMutableDictionary *launchInfo = nil;
|
|||
{
|
||||
NSEnumerator *e = [launchInfo keyEnumerator];
|
||||
NSString *s;
|
||||
NSUInteger bestLength = 0;
|
||||
NSInteger bestLength = 0;
|
||||
NSString *bestName = nil;
|
||||
|
||||
while (nil != (s = [e nextObject]))
|
||||
{
|
||||
if (comp(s, abbreviation) == 0)
|
||||
if (comp(abbreviation, s) == 0)
|
||||
{
|
||||
bestName = s;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue