Fix compile error on with MSVC.

This commit is contained in:
Nicholas Hastings 2014-08-20 21:37:47 -04:00
parent 4e5b1a58ce
commit 5716927cbf

View File

@ -267,7 +267,7 @@ static cell_t sm_OpenDirectory(IPluginContext *pContext, const cell_t *params)
if (pFirst) if (pFirst)
{ {
valveDir->bHandledFirstPath = false; valveDir->bHandledFirstPath = false;
strncpy(valveDir->szFirstPath, pFirst, sizeof(ValveDirectory::szFirstPath)); strncpy(valveDir->szFirstPath, pFirst, sizeof(valveDir->szFirstPath));
} }
else else
{ {