mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-19 22:44:42 +00:00
fix examples/network/clone.c: heap-buffer-overflow
Format of a length of string to the correct format is:%.*s
This commit is contained in:
parent
5afd0f9b7b
commit
3fdba15c2f
@ -50,7 +50,7 @@ static int sideband_progress(const char *str, int len, void *payload)
|
|||||||
{
|
{
|
||||||
(void)payload; // unused
|
(void)payload; // unused
|
||||||
|
|
||||||
printf("remote: %*s", len, str);
|
printf("remote: %.*s", len, str);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user