-
Notifications
You must be signed in to change notification settings - Fork 224
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
File with CR-LF line break will loaded error on Windows. #350
Comments
Thanks @NEUGWB. Do you have a suggestion for a fix? |
I think use fopen instead of open, or an fdeof function may help.
I don't know if there is a better way. :) |
my solution is add "O_BINARY", tested ok on VS2017: char *file_read(const char *path, size_t *len) {
|
Fixed with #365 |
According to msdn _read a file with CR-LF line break will cause read size smaller than the file size.
The text was updated successfully, but these errors were encountered: