X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=http-pull.c;h=192dcc370dee47c52c72915394bb6f2a79f64e12;hb=3a663fd9842aaa9e232ab43a811d11f1d7f0b7bc;hp=a17225719c53508a37905618c624ad8c4d0372ec;hpb=6eb7ed5403b7d57d5ed7e30d0cd0b312888ee95c;p=git.git diff --git a/http-pull.c b/http-pull.c index a1722571..192dcc37 100644 --- a/http-pull.c +++ b/http-pull.c @@ -73,7 +73,7 @@ static int fetch(unsigned char *sha1) curl_easy_setopt(curl, CURLOPT_FILE, NULL); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite_sha1_file); - url = malloc(strlen(base) + 50); + url = xmalloc(strlen(base) + 50); strcpy(url, base); posn = url + strlen(base); strcpy(posn, "objects/");