Skip to content

Commit

Permalink
Merge pull request #1230 from skliper/fix1208-negative_isspace
Browse files Browse the repository at this point in the history
Fix #1208, Cast isspace input to unsigned char
  • Loading branch information
astrogeco authored Mar 18, 2021
2 parents 1e05768 + 31aae76 commit cab1e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/es/fsw/src/cfe_es_syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void CFE_ES_SysLog_vsnprintf(char *Buffer, size_t BufferSize, const char *SpecSt
*
* Strip off all trailing whitespace, and add back a single newline
*/
while (StringLen > 0 && isspace((int)Buffer[StringLen - 1]))
while (StringLen > 0 && isspace((unsigned char)Buffer[StringLen - 1]))
{
--StringLen;
}
Expand Down

0 comments on commit cab1e18

Please sign in to comment.