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 off by one when checking file extensions #3

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

disconnect3d
Copy link
Contributor

Fixes off by ones in strncmp(some_var, ".tga", 3) and other cases. Note that the ".tga" string literal here has length of 4 and not 3 (still without counting the null byte).

@shirobu2400 shirobu2400 merged commit 705d13a into shirobu2400:master Apr 13, 2020
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