Skip to content

Commit

Permalink
Merge pull request #115 from sloede/msl/fix-end-of-file-detection-win…
Browse files Browse the repository at this point in the history
…dows

Fix EOF detection in `p4est_connectivity_getline_upper` on Windows
  • Loading branch information
cburstedde authored Jun 1, 2021
2 parents 3a78fd2 + 6fe8950 commit 461decc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/author_schlottke-lakemper.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I place my contributions to p4est under the FreeBSD license. Michael Schlottke-Lakemper
2 changes: 1 addition & 1 deletion src/p4est_connectivity.c
Original file line number Diff line number Diff line change
Expand Up @@ -4596,11 +4596,11 @@ p4est_connectivity_getline_upper (FILE * stream)

for (;;) {
c = fgetc (stream);
c = toupper (c);
if (c == EOF && linep == line) {
P4EST_FREE (linep);
return NULL;
}
c = toupper (c);

if (--len == 0) {
char *linen;
Expand Down

0 comments on commit 461decc

Please sign in to comment.