1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Fix off-by-one error in comind().

Published in <sxsvgtvdcki.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2000-11-10 08:20:55 -08:00
parent cc7b24c138
commit e18ca280fb
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-11-10 Hrvoje Niksic <hniksic@arsdigita.com>
* init.c (comind): Initialize MAX to array size - 1.
2000-11-08 Hrvoje Niksic <hniksic@arsdigita.com> 2000-11-08 Hrvoje Niksic <hniksic@arsdigita.com>
* url.c (construct): Changed last_slash[-1] to *(last_slash - 1). * url.c (construct): Changed last_slash[-1] to *(last_slash - 1).

View File

@ -174,7 +174,7 @@ static struct {
static int static int
comind (const char *com) comind (const char *com)
{ {
int min = 0, max = ARRAY_SIZE (commands); int min = 0, max = ARRAY_SIZE (commands) - 1;
do do
{ {