You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I was scratching my head why my table file was named "sample_app_table.tbl\004" until I realized that CFE_MISSION_MAX_FILE_LEN is defined as "20" and "sample_app_table.tbl" is exactly 20 characters. If I had one more char, the compiler would err. But it accepts static definition of structs using strings that are the exact length, which loses the null terminator.
Expected behavior
Should allow file names of CFE_MISSION_MAX_FILE_LEN chars.
I ran into this exact same issue today. Was scratching my head for a long time on it
Then you can test out my pull request :D (I seriously forgot to create it.) Note that it's PR #738 that you want to test out...The other PR linked to this was a previous idea that I scrapped, and had accidentally merged in a different branch into the PR branch. Whoop.
Describe the bug
I was scratching my head why my table file was named "sample_app_table.tbl\004" until I realized that CFE_MISSION_MAX_FILE_LEN is defined as "20" and "sample_app_table.tbl" is exactly 20 characters. If I had one more char, the compiler would err. But it accepts static definition of structs using strings that are the exact length, which loses the null terminator.
Expected behavior
Should allow file names of CFE_MISSION_MAX_FILE_LEN chars.
Reporter Info
[email protected]
The text was updated successfully, but these errors were encountered: