History

Fix typo in strnlen fallback

tab committed 12 years ago

Commit 3cc719c1 parent fd420e01 file · +1 −1Browse files

Showing the changes to codec/decoder/core/src/utils.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/utils.cpp+1−1
@@ -217,7 +217,7 @@ int32_t WelsStrnlen (const str_t* kpString, int32_t iMaxlen) { · 216 unmodified lines
217 // implement strnlen by ourself217 // implement strnlen by ourself
218 218
219#if 1219#if 1
220 return strlen (pString); //confirmed_safe_unsafe_usage220 return strlen (kpString); //confirmed_safe_unsafe_usage
221#else221#else
222 const str_t* kpSrc;222 const str_t* kpSrc;
223 for (kpSrc = kpString; iMaxlen-- && *kpSrc != '\0'; ++kpSrc)223 for (kpSrc = kpString; iMaxlen-- && *kpSrc != '\0'; ++kpSrc)

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