Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/cygcheck.cc6
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index c591efc95..746151da0 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,8 @@
+Tue Oct 17 1:09:00 2000 Corinna Vinschen <corinna@vinschen.de>
+
+ Patch suggested by Brad Town <btown@ceddec.com>:
+ * cygcheck.cc (main): Fix argument counting.
+
Sat Oct 14 23:42:58 2000 Christopher Faylor <cgf@cygnus.com>
* ps.cc (main): Accomodate new PID_ constant.
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index 6c41a171d..f3f3c1019 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -1063,9 +1063,9 @@ main (int argc, char **argv)
init_paths ();
- if (argc > 1 && givehelp)
+ if (argc >= 1 && givehelp)
{
- if (argc == 2)
+ if (argc == 1)
{
printf ("Here is where the OS will find your program, and which dlls\n");
printf ("will be used for it. Use -v to see DLL version info\n");
@@ -1080,7 +1080,7 @@ main (int argc, char **argv)
printf ("\n");
}
- for (i = 1; i < argc; i++)
+ for (i = 0; i < argc; i++)
{
cygcheck (argv[i]);
printf ("\n");