Merge pull request #2151 from mstorsjo/fix-msvc

Revert an accidental change that broke MSVC compilation
This commit is contained in:
HaiboZhu 2015-10-13 18:26:14 +08:00
commit 6c13a2c496

View File

@ -75,8 +75,8 @@ int32_t WelsSnprintf (char* pBuffer, int32_t iSizeOfBuffer, const char* kpForma
return iRc;
}
char* WelsStrncpy (char* pDest, uint32_t uiSizeInBytes, const char* kpSrc) {
strncpy_s (pDest, uiSizeInBytes, kpSrc, _TRUNCATE);
char* WelsStrncpy (char* pDest, int32_t iSizeInBytes, const char* kpSrc) {
strncpy_s (pDest, iSizeInBytes, kpSrc, _TRUNCATE);
return pDest;
}