Commit 57ad9f2e7971549916f66d4a5a2b3b316a24d36a

Vicent Martí 2012-09-13T14:35:41

Merge pull request #931 from scunz/error_text Fix error text s/buffer too long/buffer too short/

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.c b/src/repository.c
index bcc6b15..8702252 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -430,7 +430,7 @@ int git_repository_discover(
 
 	if (size < (size_t)(path.size + 1)) {
 		giterr_set(GITERR_REPOSITORY,
-			"The given buffer is too long to store the discovered path");
+			"The given buffer is too small to store the discovered path");
 		git_buf_free(&path);
 		return -1;
 	}