Skip to content
Snippets Groups Projects
Commit c164e069 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

Fixed array index overflow.

parent dc754063
No related branches found
No related tags found
No related merge requests found
......@@ -341,7 +341,6 @@ HRESULT DP_MSG_ForwardPlayerCreation( IDirectPlay2AImpl* This, DPID dpidServer )
lpMsgBody->unknown4[9] = 0x0;
lpMsgBody->unknown4[10] = 0x0;
lpMsgBody->unknown4[11] = 0x0;
lpMsgBody->unknown4[12] = 0x0;
lpMsgBody->unknown5[0] = 0x0;
lpMsgBody->unknown5[1] = 0x0;
......
......@@ -56,9 +56,9 @@ time_t ConvertTimeString(LPCWSTR asctime)
strncpyW(tmpChar, asctime, TIME_STRING_LEN);
/* Assert that the string is the expected length */
if (tmpChar[TIME_STRING_LEN] != '\0')
if (tmpChar[TIME_STRING_LEN - 1] != '\0')
{
tmpChar[TIME_STRING_LEN] = '\0';
tmpChar[TIME_STRING_LEN - 1] = '\0';
FIXME("\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment