Skip to content

Commit ffe259d

Browse files
author
Edward Thomson
authored
Merge pull request libgit2#4074 from fcharlie/master
fix examples/network/clone.c: heap-buffer-overflow
2 parents ee89941 + 3fdba15 commit ffe259d

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)