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
The character array needs to be 13 to allow for a trailing \0. However, that bumps the struct size up to 16 causing the gsf write code to write a 16 byte block instead of the original 12.
gsfHeader uses the size of the struct to determine the size of what to write.
The text was updated successfully, but these errors were encountered:
schwehr
changed the title
gsfHeader uses the size of the struct to determine the size of what to write.
using sizeof(struct foo) is a bad idea for serialization
Jul 10, 2015
The character array needs to be 13 to allow for a trailing \0. However, that bumps the struct size up to 16 causing the gsf write code to write a 16 byte block instead of the original 12.
gsfHeader uses the size of the struct to determine the size of what to write.
The text was updated successfully, but these errors were encountered: