Commit 69f0295c8031c6bb4ecc56a605070969513616d1

Colin Timmermans 2010-11-06T00:14:18

Fix compiler warning in commit.c

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/commit.c b/src/commit.c
index 08243f5..6fcbfd7 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 */