* fhandler_process.cc: Use strcasematch instead of strcasecmp
throughout.
This commit is contained in:
parent
6e450bdeed
commit
69008322ef
@ -1,3 +1,8 @@
|
||||
2005-01-06 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_process.cc: Use strcasematch instead of strcasecmp
|
||||
throughout.
|
||||
|
||||
2005-01-06 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* syscalls.cc (rename): Fix behaviour in case of renaming directories
|
||||
|
@ -324,7 +324,7 @@ fhandler_process::fill_filebuf ()
|
||||
if (len > 4)
|
||||
{
|
||||
char *s = filebuf + len - 4;
|
||||
if (strcasecmp (s, ".exe") == 0)
|
||||
if (strcasematch (s, ".exe"))
|
||||
*s = 0;
|
||||
}
|
||||
}
|
||||
@ -392,7 +392,7 @@ format_process_stat (_pinfo *p, char *destbuf, size_t maxsize)
|
||||
if (len > 4)
|
||||
{
|
||||
char *s = cmd + len - 4;
|
||||
if (strcasecmp (s, ".exe") == 0)
|
||||
if (strcasematch (s, ".exe"))
|
||||
*s = 0;
|
||||
}
|
||||
}
|
||||
@ -525,7 +525,7 @@ format_process_status (_pinfo *p, char *destbuf, size_t maxsize)
|
||||
if (len > 4)
|
||||
{
|
||||
char *s = cmd + len - 4;
|
||||
if (strcasecmp (s, ".exe") == 0)
|
||||
if (strcasematch (s, ".exe"))
|
||||
*s = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user