~sircmpwn/gmni-devel

gmni: fix missing last line in gmnlm in some cases v1 APPLIED

René Wagner: 1
 fix missing last line in gmnlm in some cases

 1 files changed, 1 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/gmni-devel/patches/26029/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gmni] fix missing last line in gmnlm in some cases Export this patch

closes ~sircmpwn/gmni#64
---
 src/parser.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/parser.c b/src/parser.c
index 6f12456..fa3b798 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -44,9 +44,7 @@ gemini_parser_next(struct gemini_parser *p, struct gemini_token *tok)
		}

		int n = p->read(p->state, &p->buf[p->bufln], p->bufsz - p->bufln - 1);
		if (n == -1) {
			return -1;
		} else if (n == 0) {
		if (n < 1) {
			eof = p->bufln == 0;
			break;
		}
-- 
2.33.1
Thanks!

To git@git.sr.ht:~sircmpwn/gmni
   1a9aa3e..17a2704  master -> master