Use WelsSnprintf instead of SNPRINTF
This commit is contained in:
@@ -2085,19 +2085,8 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar
|
||||
if (wlog == WelsLogDefault) {
|
||||
str_t fname[MAX_FNAME_LEN] = {0};
|
||||
|
||||
#if defined (_MSC_VER)
|
||||
#if _MSC_VER>=1500
|
||||
SNPRINTF (fname, MAX_FNAME_LEN, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt",
|
||||
pCodingParam->sTracePath); // confirmed_safe_unsafe_usage
|
||||
#else
|
||||
SNPRINTF (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt",
|
||||
pCodingParam->sTracePath); // confirmed_safe_unsafe_usage
|
||||
#endif//_MSC_VER>=1500
|
||||
#else
|
||||
//GNUC/
|
||||
SNPRINTF (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt",
|
||||
pCodingParam->sTracePath); // confirmed_safe_unsafe_usage
|
||||
#endif//_MSC_VER
|
||||
WelsSnprintf (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt",
|
||||
pCodingParam->sTracePath); // confirmed_safe_unsafe_usage
|
||||
|
||||
|
||||
pCtx->pFileLog = WelsFopen (fname, "wt+");
|
||||
|
||||
Reference in New Issue
Block a user