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

Add dynamic fgets for supporting long lines in mtl files. Fixes #20 #24

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

mandyedi
Copy link
Contributor

@mandyedi mandyedi commented Mar 1, 2019

Hi @syoyo
I fixed the issue #20
I ran the provided tests and they finished without any error. I also noticed that stdlib functions uses the TINYOBJ_* definitions so I used them for malloc and realloc.
I set the initial line buffer size to 128, so it won't use that much memory. I assume that for the average .mtl files it is more than enough.
If any further changes needed for the fix write me! :)

@AgentOak AgentOak mentioned this pull request Mar 2, 2019
@syoyo syoyo merged commit 951c7ae into syoyo:master Mar 2, 2019
@syoyo
Copy link
Owner

syoyo commented Mar 2, 2019

awesome! merged!

@mandyedi mandyedi deleted the issue20 branch March 2, 2019 17:49
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