summaryrefslogtreecommitdiff
path: root/src/patch_parse.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-05-20 07:02:50 -0700
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-24 15:00:40 +0100
commitf1d7318959a993afa744b591f2333d98a0536798 (patch)
tree50936dda9f49bdbbbdd7ae81119c2ce1870e688c /src/patch_parse.c
parent9a6992c48bf08755606d865ba2b3504438789b73 (diff)
downloadlibgit2-f1d7318959a993afa744b591f2333d98a0536798.tar.gz
patch: use size_t for size when parsing
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r--src/patch_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c
index d7311157f..b44d4f02f 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, "\"");