From 1ed91ac39718e00fdde21d8e8524927bcd93961b Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Tue, 16 Mar 2021 16:38:06 -0400 Subject: [PATCH] Fix #1208, Cast isspace input to unsigned char --- modules/es/fsw/src/cfe_es_syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/es/fsw/src/cfe_es_syslog.c b/modules/es/fsw/src/cfe_es_syslog.c index 61db46384..3d203e9f2 100644 --- a/modules/es/fsw/src/cfe_es_syslog.c +++ b/modules/es/fsw/src/cfe_es_syslog.c @@ -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; }