summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorColin Timmermans <colintimmermans@gmail.com>2010-11-06 00:14:18 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-07 01:31:37 +0200
commit69f0295c8031c6bb4ecc56a605070969513616d1 (patch)
treec9113ce50ecd78bf6f30bc8776063ec7eae6fec7 /src/commit.c
parent1081d909456b8149c8b7fd5eb16d39c6a55c4078 (diff)
downloadlibgit2-69f0295c8031c6bb4ecc56a605070969513616d1.tar.gz
Fix compiler warning in commit.c
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 08243f5c4..6fcbfd734 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -173,7 +173,7 @@ int commit_parse_buffer(git_commit *commit, void *data, size_t len, unsigned int
buffer++;
if (parse_flags & COMMIT_FULL_PARSE && buffer < buffer_end) {
- char *line_end;
+ const char *line_end;
size_t message_len = buffer_end - buffer;
/* Long message */