The same trace module is used for the decoder now as well.
Showing the changes to codec/common/src/welsCodecTrace.cpp (1 of 1 file). Show all
Unified · Split
| @@ -100,11 +100,7 @@ void welsCodecTrace::CODEC_TRACE (void* ignore, const int32_t iLevel, const char · 99 unmodified lines | ||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | char pBuf[MAX_LOG_SIZE] = {0}; |
| 103 | − const int32_t len = strlen ("[ENCODER]: "); // confirmed_safe_unsafe_usage | |
| 104 | − | |
| 105 | − | |
| 106 | − WelsStrncpy (pBuf, MAX_LOG_SIZE, "[ENCODER]: "); // confirmed_safe_unsafe_usage | |
| 107 | − WelsVsnprintf (pBuf + len, MAX_LOG_SIZE - len, Str_Format, vl); // confirmed_safe_unsafe_usage | |
| 103 | + WelsVsnprintf (pBuf, MAX_LOG_SIZE, Str_Format, vl); // confirmed_safe_unsafe_usage | |
| 108 | 104 | |
| 109 | 105 | welsCodecTrace::TraceString (iLevel, pBuf); |
| 110 | 106 | } |