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

src/tun.cpp:45:9: warning: array index 20 is past the end of the array #2

Closed
briankwest opened this issue Feb 5, 2014 · 1 comment

Comments

@briankwest
Copy link

this->device[VTUN_DEV_LEN] = 0;

sets the 20th element to 0 but its zero based so its past the end of the array.

Should read

this->device[VTUN_DEV_LEN-1] = 0;

/b

@friedrich
Copy link
Owner

Fixed in e6d7f4c. Thank you!

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

No branches or pull requests

2 participants