We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c065f6a commit 581a4d3Copy full SHA for 581a4d3
src/apply.c
@@ -53,7 +53,10 @@ static int patch_image_init_fromstr(
53
for (start = in; start < in + in_len; start = end) {
54
end = memchr(start, '\n', in_len);
55
56
- if (end < in + in_len)
+ if (end == NULL)
57
+ end = in + in_len;
58
+
59
+ else if (end < in + in_len)
60
end++;
61
62
line = git_pool_mallocz(&out->pool, 1);
0 commit comments