Skip to content

Commit

Permalink
Merge pull request nasa#1018 from jphickey/fix-1016-fix-warning
Browse files Browse the repository at this point in the history
Fix nasa#1016, bogus warning in strncpy
  • Loading branch information
astrogeco authored Dec 1, 2020
2 parents fe3427f + 5eba09e commit 113abb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fsw/cfe-core/src/es/cfe_es_apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ int32 CFE_ES_StartAppTask(const CFE_ES_AppStartParams_t* StartParams, CFE_ES_Res

TaskRecPtr->AppId = RefAppId;
strncpy(TaskRecPtr->TaskName, StartParams->BasicInfo.Name, sizeof(TaskRecPtr->TaskName)-1);
TaskRecPtr->TaskName[sizeof(TaskRecPtr->TaskName)-1] = 0;
CFE_ES_TaskRecordSetUsed(TaskRecPtr, TaskId);

/*
Expand Down

0 comments on commit 113abb9

Please sign in to comment.