mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 22:21:37 +00:00
Fix error text s/buffer too long/buffer too short/
This commit is contained in:
parent
d973a5afd4
commit
13b554e376
@ -430,7 +430,7 @@ int git_repository_discover(
|
|||||||
|
|
||||||
if (size < (size_t)(path.size + 1)) {
|
if (size < (size_t)(path.size + 1)) {
|
||||||
giterr_set(GITERR_REPOSITORY,
|
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);
|
git_buf_free(&path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user