ref: 6c13a2c4966138ec7d4763557b3bfbb0b36401b1
parent: 6239fbe131bbcaa71269f02bd28f228a28f7395a
parent: 837599becc8a0f025de5a4c344e13d6781b1db59
author: HaiboZhu <haibozhu@cisco.com>
date: Tue Oct 13 14:26:14 EDT 2015
Merge pull request #2151 from mstorsjo/fix-msvc Revert an accidental change that broke MSVC compilation
--- a/codec/common/src/crt_util_safe_x.cpp
+++ b/codec/common/src/crt_util_safe_x.cpp
@@ -75,8 +75,8 @@
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;
}