system: nxrecorder: Add O_TRUNC when creating a file
@@ -847,7 +847,7 @@ int nxrecorder_recordraw(FAR struct nxrecorder_s *precorder,
/* Test that the specified file exists */
- if ((precorder->fd = open(pfilename, O_WRONLY | O_CREAT)) == -1)
+ if ((precorder->fd = open(pfilename, O_WRONLY | O_CREAT | O_TRUNC)) == -1)
{
/* File not found. Test if its in the mediadir */
