Commit 3fdba15c by Force.Charlie-I Committed by GitHub

fix examples/network/clone.c: heap-buffer-overflow

Format of a length of string to the correct format is:%.*s
parent 5afd0f9b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment