Skip to content

Commit

Permalink
Merge pull request nasa#584 from skliper/fix335-shell-unsigned-bug
Browse files Browse the repository at this point in the history
Fix nasa#335: Shell unsigned pkt length bug
  • Loading branch information
astrogeco authored Apr 21, 2020
2 parents 0cd9f5e + 627a969 commit 8ed578e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/es/cfe_es_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ int32 CFE_ES_ShellOutputCommand(const char * CmdString, const char *Filename)
/* start processing the chunks. We want to have one packet left so we are sure this for loop
* won't run over */

for (CurrFilePtr=0; CurrFilePtr < (FileSize - CFE_MISSION_ES_MAX_SHELL_PKT); CurrFilePtr += CFE_MISSION_ES_MAX_SHELL_PKT)
for (CurrFilePtr=0; (CurrFilePtr + CFE_MISSION_ES_MAX_SHELL_PKT) < FileSize ; CurrFilePtr += CFE_MISSION_ES_MAX_SHELL_PKT)
{
OS_read(fd, CFE_ES_TaskData.ShellPacket.Payload.ShellOutput, CFE_MISSION_ES_MAX_SHELL_PKT);

Expand Down

0 comments on commit 8ed578e

Please sign in to comment.