diff options
Diffstat (limited to 'remote-curl.c')
-rw-r--r-- | remote-curl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remote-curl.c b/remote-curl.c index a0777e3f7a..dad241e89d 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -1,6 +1,5 @@ #include "git-compat-util.h" #include "git-curl-compat.h" -#include "alloc.h" #include "config.h" #include "environment.h" #include "gettext.h" @@ -764,7 +763,8 @@ static void check_pktline(struct check_pktline_state *state, const char *ptr, si size -= digits_remaining; if (state->len_filled == 4) { - state->remaining = packet_length(state->len_buf); + state->remaining = packet_length(state->len_buf, + sizeof(state->len_buf)); if (state->remaining < 0) { die(_("remote-curl: bad line length character: %.4s"), state->len_buf); } else if (state->remaining == 2) { |