Skip to content

Commit

Permalink
Fix #48, Filename reporting when move is empty bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 18, 2022
1 parent 598379a commit e6f9682
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fsw/src/ds_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,12 +906,10 @@ void DS_FileCloseDest(int32 FileIndex)
CFE_EVS_SendEvent(DS_MOVE_FILE_ERR_EID, CFE_EVS_EventType_ERROR,
"FILE MOVE error: dir name = '%s', filename = '%s'", PathName, FileName);
}
}

/*
** Get the directory name...
*/
strncpy(FileStatus->FileName, PathName, sizeof(PathName));
/* Update the path name for reporting */
strncpy(FileStatus->FileName, PathName, sizeof(PathName));
}
#else
/*
** Close the file...
Expand Down

0 comments on commit e6f9682

Please sign in to comment.