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:
parent
cc7b24c138
commit
e18ca280fb
@ -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>
|
||||
|
||||
* url.c (construct): Changed last_slash[-1] to *(last_slash - 1).
|
||||
|
@ -174,7 +174,7 @@ static struct {
|
||||
static int
|
||||
comind (const char *com)
|
||||
{
|
||||
int min = 0, max = ARRAY_SIZE (commands);
|
||||
int min = 0, max = ARRAY_SIZE (commands) - 1;
|
||||
|
||||
do
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user