Commit Diff


commit - 9e56e3e72fb31e03214fadd7107fe6f2e7b8dbfc
commit + 7e9b6c634c4de2b6747c1de06c91927e1041303f
blob - 4877c0752c043c855ee2cdcfefe71db2894b1bb7
blob + 2b04222ed9896664bd3fd8b05fc126ae38feb27a
--- gotd/libexec/got-notify-http/got-notify-http.c
+++ gotd/libexec/got-notify-http/got-notify-http.c
@@ -652,7 +652,7 @@ jsonify_tag(FILE *fp, char **line, ssize_t *linesize)
 			}
 
 			msglen -= linelen + 1;
-			if (msglen <= 1) {
+			if (msglen <= 0) {
 				fprintf(fp, "\"");
 				done = 1;
 				break;