Skip to content

Commit 3fdba15

Browse files
authored
fix examples/network/clone.c: heap-buffer-overflow
Format of a length of string to the correct format is:%.*s
1 parent 5afd0f9 commit 3fdba15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/network/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int sideband_progress(const char *str, int len, void *payload)
5050
{
5151
(void)payload; // unused
5252

53-
printf("remote: %*s", len, str);
53+
printf("remote: %.*s", len, str);
5454
fflush(stdout);
5555
return 0;
5656
}

0 commit comments

Comments
 (0)