mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-01 08:49:57 +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
|
||||
|
||||
printf("remote: %*s", len, str);
|
||||
printf("remote: %.*s", len, str);
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user