Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Null-Terminated Strings #1

Open
itisrazza opened this issue Mar 6, 2019 · 0 comments
Open

Null-Terminated Strings #1

itisrazza opened this issue Mar 6, 2019 · 0 comments

Comments

@itisrazza
Copy link
Owner

itisrazza commented Mar 6, 2019

So... The file header doesn't allow space for null-terminated strings in some circumstances (which is fair enough).

But when it comes to display them, printf looks for a null at the end of a string, which it doesn't have (notable in the case of the identifier, which continues printing the filetype ID after).

I have no idea how to just simply tack it on for the purpose of printing. I'll see if I can do it after coming back from uni this afternoon.

I've noted where they are with a // nl comment. Here are some places to reference (FileHeader, AddinHeader, printing of FileHeader::identifier (known issue))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant