Skip to content

Commit

Permalink
Fix nasa#1208, Cast isspace input to unsigned char
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Mar 16, 2021
1 parent 7f8e475 commit 1ed91ac
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 1ed91ac

Please sign in to comment.