Also remove manual null termination as WelsStrncpy now always takes care of it.
Showing the changes to codec/decoder/plus/src/welsCodecTrace.cpp (1 of 6 files). Show all
Unified · Split
| @@ -62,7 +62,7 @@ int32_t CWelsTraceBase::Trace (const int kLevel, const str_t* kpFormat, va_list · 61 unmodified lines | ||
| 62 | 62 | str_t chBuf[MAX_LOG_SIZE] = {0}; |
| 63 | 63 | const int32_t kLen = strlen ("[DECODER]: "); |
| 64 | 64 | |
| 65 | − WelsStrncpy (chBuf, MAX_LOG_SIZE, (const str_t*)"[DECODER]: ", kLen); | |
| 65 | + WelsStrncpy (chBuf, MAX_LOG_SIZE, (const str_t*)"[DECODER]: "); | |
| 66 | 66 | |
| 67 | 67 | WelsVsnprintf ((chBuf + kLen), MAX_LOG_SIZE - kLen, (const str_t*)kpFormat, pVl); |
| 68 | 68 | |