Skip to content

Commit 31aae76

Browse files
author
Jacob Hageman
committed
Fix #1208, Cast isspace input to unsigned char
1 parent fa10af7 commit 31aae76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/es/fsw/src/cfe_es_syslog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void CFE_ES_SysLog_vsnprintf(char *Buffer, size_t BufferSize, const char *SpecSt
417417
*
418418
* Strip off all trailing whitespace, and add back a single newline
419419
*/
420-
while (StringLen > 0 && isspace((int)Buffer[StringLen - 1]))
420+
while (StringLen > 0 && isspace((unsigned char)Buffer[StringLen - 1]))
421421
{
422422
--StringLen;
423423
}

0 commit comments

Comments
 (0)