History

Rename WelsVsprintf to WelsVsnprintf, to indicate that it actually checks the length

Martin Storsjö committed 12 years ago

Commit 0ce42ff1 parent e42e82a3 files · +5 −5Browse files

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

Unified · Split

codec/decoder/plus/src/welsCodecTrace.cpp+1−1
@@ -68,7 +68,7 @@ int32_t CWelsTraceBase::Trace (const int kLevel, const str_t* kpFormat, va_list · 67 unmodified lines
6868
6969 WelsStrncpy (chBuf, MAX_LOG_SIZE, (const str_t*)"[DECODER]: ", kLen);
7070
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);
7272 WelsStrncpy (chResult, MAX_LOG_SIZE, (const str_t*)chBuf, WelsStrnlen ((const str_t*)chBuf, MAX_LOG_SIZE));
7373
7474 WriteString (kLevel, chResult);

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