* fhandler_process.cc: Use strcasematch instead of strcasecmp

throughout.
This commit is contained in:
Corinna Vinschen 2005-01-06 23:00:08 +00:00
parent 6e450bdeed
commit 69008322ef
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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;
}
}