Skip to content

Commit

Permalink
Merge pull request #1142 from jphickey/fix-1141-memchr-cast
Browse files Browse the repository at this point in the history
Fix #1141, add typecast to memchr call
  • Loading branch information
astrogeco authored Sep 8, 2021
2 parents b30de31 + a6cf564 commit 101adb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/shared/inc/os-shared-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void OS_ApplicationShutdown_Impl(void);
------------------------------------------------------------------*/
static inline size_t OS_strnlen(const char *s, size_t maxlen)
{
const char *end = memchr(s, 0, maxlen);
const char *end = (const char *)memchr(s, 0, maxlen);
if (end != NULL)
{
/* actual length of string is difference */
Expand Down

0 comments on commit 101adb4

Please sign in to comment.