X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=http-push.c;h=7c3720f602bb8f50ed54a4f7e7a85c7e08d1c07b;hb=acef41c9db33f2261e46e17cca098df3403dd745;hp=e3f767582bfc71fc3d1b90be8fa76ab3ad7e1664;hpb=b7108a16a6d6a9cc9542d53e8898c0b927bfd59b;p=git.git diff --git a/http-push.c b/http-push.c index e3f767582..7c3720f60 100644 --- a/http-push.c +++ b/http-push.c @@ -9,6 +9,7 @@ #include "diff.h" #include "revision.h" #include "exec_cmd.h" +#include "remote.h" #include @@ -517,7 +518,7 @@ static void start_put(struct transfer_request *request) request->buffer.size = stream.total_out; request->buffer.posn = 0; - request->url = xmalloc(strlen(remote->url) + + request->url = xmalloc(strlen(remote->url) + strlen(request->lock->token) + 51); strcpy(request->url, remote->url); posn = request->url + strlen(remote->url);