Showing the changes to codec/decoder/plus/src/welsCodecTrace.cpp (1 of 3 files). Show all
Unified · Split
| @@ -68,7 +68,7 @@ int32_t CWelsTraceBase::Trace (const int kLevel, const str_t* kpFormat, va_list · 67 unmodified lines | ||
| 68 | 68 | |
| 69 | 69 | WelsStrncpy (chBuf, MAX_LOG_SIZE, (const str_t*)"[DECODER]: ", kLen); |
| 70 | 70 | |
| 71 | − WelsVsprintf ((chBuf + kLen), MAX_LOG_SIZE - kLen, (const str_t*)kpFormat, pVl); | |
| 71 | + WelsVsnprintf ((chBuf + kLen), MAX_LOG_SIZE - kLen, (const str_t*)kpFormat, pVl); | |
| 72 | 72 | WelsStrncpy (chResult, MAX_LOG_SIZE, (const str_t*)chBuf, WelsStrnlen ((const str_t*)chBuf, MAX_LOG_SIZE)); |
| 73 | 73 | |
| 74 | 74 | WriteString (kLevel, chResult); |