History

Remove the now unused count parameter to WelsStrncpy

Also remove manual null termination as WelsStrncpy now always takes care of it.

Martin Storsjö committed 12 years ago

Commit 9840f111 parent a16ccc06 files · +11 −15Browse files

Showing the changes to codec/decoder/plus/src/welsCodecTrace.cpp (1 of 6 files). Show all

Unified · Split

codec/decoder/plus/src/welsCodecTrace.cpp+1−1
@@ -62,7 +62,7 @@ int32_t CWelsTraceBase::Trace (const int kLevel, const str_t* kpFormat, va_list · 61 unmodified lines
62 str_t chBuf[MAX_LOG_SIZE] = {0};62 str_t chBuf[MAX_LOG_SIZE] = {0};
63 const int32_t kLen = strlen ("[DECODER]: ");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 WelsVsnprintf ((chBuf + kLen), MAX_LOG_SIZE - kLen, (const str_t*)kpFormat, pVl);67 WelsVsnprintf ((chBuf + kLen), MAX_LOG_SIZE - kLen, (const str_t*)kpFormat, pVl);
68 68

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t