[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/parsetexi/input.c (next_text): Us
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/XS/parsetexi/input.c (next_text): Use positive value for getline argument. From Eli. |
Date: |
Sun, 08 Oct 2023 11:40:57 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new c2c9e538cb * tp/Texinfo/XS/parsetexi/input.c (next_text): Use positive
value for getline argument. From Eli.
c2c9e538cb is described below
commit c2c9e538cbbdcf52945c909a24815b488a316694
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Oct 8 16:40:49 2023 +0100
* tp/Texinfo/XS/parsetexi/input.c (next_text):
Use positive value for getline argument. From Eli.
---
ChangeLog | 5 +++++
tp/Texinfo/XS/parsetexi/input.c | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 944dbc9f4d..69a0ee5613 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-10-08 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/XS/parsetexi/input.c (next_text):
+ Use positive value for getline argument. From Eli.
+
2023-10-08 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/parsetexi/input.c (next_text):
diff --git a/tp/Texinfo/XS/parsetexi/input.c b/tp/Texinfo/XS/parsetexi/input.c
index 56654decbb..e4a4577b86 100644
--- a/tp/Texinfo/XS/parsetexi/input.c
+++ b/tp/Texinfo/XS/parsetexi/input.c
@@ -395,7 +395,9 @@ next_text (ELEMENT *current)
{
ssize_t status;
char *line = 0;
- size_t n = 0;
+ size_t n = 1;
+ /* Note: n needs to be a positive value, rather than 0, to work around
+ a bug in getline on MinGW. This appears to be allowed by POSIX. */
FILE *input_file;
if (input_pushback_string)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/parsetexi/input.c (next_text): Use positive value for getline argument. From Eli.,
Gavin D. Smith <=