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/encoder/plus/src/welsEncoderExt.cpp (1 of 6 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+1−1
@@ -994,7 +994,7 @@ void CWelsH264SVCEncoder::DumpSrcPicture (const uint8_t* pSrc) { · 993 unmodified lines
994 str_t strFileName[256] = {0};994 str_t strFileName[256] = {0};
995 const int32_t iDataLength = m_iMaxPicWidth * m_iMaxPicHeight;995 const int32_t iDataLength = m_iMaxPicWidth * m_iMaxPicHeight;
996 996
997 WelsStrncpy (strFileName, 256, "pic_in_", strlen ("pic_in_")); // confirmed_safe_unsafe_usage997 WelsStrncpy (strFileName, 256, "pic_in_"); // confirmed_safe_unsafe_usage
998 998
999 if (m_iMaxPicWidth == 640) {999 if (m_iMaxPicWidth == 640) {
1000 STRCAT (strFileName, 256, "360p."); // confirmed_safe_unsafe_usage1000 STRCAT (strFileName, 256, "360p."); // confirmed_safe_unsafe_usage

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