diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-01-06 23:00:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-01-06 23:00:08 +0000 |
commit | 69008322efa3e4b0b844cb552719801bef3be583 (patch) | |
tree | 271a0d7b72cb9059ed7704e72ec5f4841ddb2f12 /winsup/cygwin/fhandler_process.cc | |
parent | 6e450bdeeda3734037bc606ca429f6a59131c3da (diff) | |
download | newlib-69008322efa3e4b0b844cb552719801bef3be583.zip newlib-69008322efa3e4b0b844cb552719801bef3be583.tar.gz newlib-69008322efa3e4b0b844cb552719801bef3be583.tar.bz2 |
* fhandler_process.cc: Use strcasematch instead of strcasecmp
throughout.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 98276e3..e259044 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -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; } } |