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:
Force.Charlie-I 2017-01-09 14:09:57 +08:00 committed by GitHub
parent 5afd0f9b7b
commit 3fdba15c2f

View File

@ -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;
}