Commit f1d7318959a993afa744b591f2333d98a0536798

Edward Thomson 2019-05-20T07:02:50

patch: use size_t for size when parsing

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/patch_parse.c b/src/patch_parse.c
index d731115..b44d4f0 100644
--- a/src/patch_parse.c
+++ b/src/patch_parse.c
@@ -33,7 +33,7 @@ typedef struct {
 	char *old_prefix, *new_prefix;
 } git_patch_parsed;
 
-static int header_path_len(git_patch_parse_ctx *ctx)
+static size_t header_path_len(git_patch_parse_ctx *ctx)
 {
 	bool inquote = 0;
 	bool quoted = git_parse_ctx_contains_s(&ctx->parse_ctx, "\"");