Commit ad3e22d5 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent bab2a40f
......@@ -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;
......
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