Skip to content

Commit

Permalink
addresses strncpy req by Joe
Browse files Browse the repository at this point in the history
  • Loading branch information
CDKnightNASA committed Jan 21, 2020
1 parent f9b3e31 commit eafb8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/sb/cfe_sb_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ int32 CFE_SB_GetPipeName(char *PipeNameBuf, size_t PipeNameSize, CFE_SB_PipeId_t
}else{
if (OS_QueueGetInfo(CFE_SB.PipeTbl[PipeId].SysQueueId, &queue_prop)
== OS_SUCCESS){
strncpy(PipeNameBuf, queue_prop.name, OS_MAX_API_NAME-1);
strncpy(PipeNameBuf, queue_prop.name, PipeNameSize-1);

CFE_EVS_SendEventWithAppID(CFE_SB_GETPIPENAME_EID,
CFE_EVS_EventType_DEBUG,CFE_SB.AppId,
Expand Down

0 comments on commit eafb8ec

Please sign in to comment.