diff options
| author | Force.Charlie-I <fcharlie@users.noreply.github.com> | 2017-01-09 14:09:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-09 14:09:57 +0800 |
| commit | 3fdba15c2f3fd8577dff6cbc61073b723136af4d (patch) | |
| tree | b1c45f60f217e60c6a5dd68ce34815aacf31e759 | |
| parent | 5afd0f9b7b39ecab4b9334f678bdc2631990c945 (diff) | |
| download | libgit2-3fdba15c2f3fd8577dff6cbc61073b723136af4d.tar.gz | |
fix examples/network/clone.c: heap-buffer-overflow
Format of a length of string to the correct format is:%.*s
| -rw-r--r-- | examples/network/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/clone.c b/examples/network/clone.c index caf41cca8..540000bfd 100644 --- a/examples/network/clone.c +++ b/examples/network/clone.c @@ -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; } |
