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

Parser bug with files larger than BUFSIZ #3

Open
JakobR opened this issue Dec 28, 2017 · 0 comments
Open

Parser bug with files larger than BUFSIZ #3

JakobR opened this issue Dec 28, 2017 · 0 comments

Comments

@JakobR
Copy link

JakobR commented Dec 28, 2017

There seems to be a bug in the S-expression parser. When the file to be read is larger than BUFSIZ bytes (which is 1024 on my system), I get the error SEXP_ERR_INCOMPLETE (in the sexp_errno variable).

I don't know how to properly fix it, but adding the lines

#undef BUFSIZ
#define	BUFSIZ	10240

after the includes in sexp.h makes the error disappear for my larger file.

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

1 participant