ref: 837599becc8a0f025de5a4c344e13d6781b1db59
parent: 6239fbe131bbcaa71269f02bd28f228a28f7395a
author: Martin Storsjö <martin@martin.st>
date: Tue Oct 13 08:12:55 EDT 2015
Revert an accidental change that broke MSVC compilation This reverts an unrelated part of e7e3b4f37f0. Since the function still is declared as taking an int32_t parameter in the header, changing the function implementation makes it end up as a different function.
--- 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;
}