Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fsw/src/fm_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ CFE_Status_t FM_GetDirListFileCmd(const FM_GetDirListFileCmd_t *Msg)
}
else
{
memcpy(Filename, CmdPtr->OutputFilePath, sizeof(Filename));
strncpy(Filename, CmdPtr->OutputFilePath, sizeof(Filename) - 1);
Filename[sizeof(Filename) - 1] = '\0';
}

/* Note: it is OK for this file to overwrite a previous version of the file */
Expand Down
Loading