wininet: Fix off by one error parsing RFC 850 dates.

This commit is contained in:
Juan Lang 2011-10-24 13:21:10 -07:00 committed by Alexandre Julliard
parent bab2a40f87
commit ad3e22d5ee
1 changed files with 1 additions and 1 deletions

View File

@ -4292,7 +4292,7 @@ static BOOL HTTP_ParseRfc850Date(LPCWSTR value, FILETIME *ft)
return FALSE;
}
}
else if (ptr - value <= sizeof(day) / sizeof(day[0]))
else if (ptr - value < sizeof(day) / sizeof(day[0]))
{
memcpy(day, value, (ptr - value) * sizeof(WCHAR));
day[ptr - value + 1] = 0;