Commit 82155995 authored by Pekka Pessi's avatar Pekka Pessi

torture_su_port.c: fixed problems with I overflow.

darcs-hash:20061122194133-65a35-35d05dd73686b154ea65fa9e444fe4e27c8ec90d.gz
parent 990e715a
...@@ -305,10 +305,12 @@ int main(int argc, char *argv[]) ...@@ -305,10 +305,12 @@ int main(int argc, char *argv[])
int retval = 0; int retval = 0;
int i; int i;
#if SU_HAVE_WINSOCK
if (N > SU_WAIT_MAX) if (N > SU_WAIT_MAX)
N = SU_WAIT_MAX; N = SU_WAIT_MAX;
if (I > SU_WAIT_MAX + 1) if (I - 1 >= SU_WAIT_MAX)
I = SU_WAIT_MAX + 1; I = (unsigned)SU_WAIT_MAX + 1;
#endif
for (i = 1; argv[i]; i++) { for (i = 1; argv[i]; i++) {
if (strcmp(argv[i], "-v") == 0) if (strcmp(argv[i], "-v") == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment