Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sigmf Record: overwriting sigmf-data or sigmf-meta #2136

Merged
merged 1 commit into from
May 29, 2024

Conversation

mxi-box
Copy link
Contributor

@mxi-box mxi-box commented May 29, 2024

Replaced std::ofstream by QFile to support resize(qint64) (or ftruncate)

The original code will open sigmf-meta without append flag. It causes file emptied if we don't start any recording after opening it.
Fix potential bug that may cause sigmf-meta saved wrongly without calling ftruncate.

Check whether it works on other OS if possible.

@f4exb f4exb merged commit c913b20 into f4exb:master May 29, 2024
1 of 3 checks passed
@mxi-box mxi-box deleted the sigmf_fix branch May 30, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants