Merge branch 'master' into netgen-1.5

This commit is contained in:
Tim Edwards 2025-08-26 02:00:02 -04:00
commit 80f9263004
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
1.5.296
1.5.297

View File

@ -329,6 +329,11 @@ int GetNextLineNoNewline(char *delimiter)
llen = strlen(line);
}
while (llen == linesize - 1) {
/* Note that in the rare case where a newline is in the last buffer
* position, we're done.
*/
if (*(line + llen - 1) == '\n') break;
newbuf = (char *)MALLOC(linesize + 501);
strcpy(newbuf, line);
FREE(line);