X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=http-push.c;h=c9dd9a1f6475cc8772b1e0f528a9f54751d6445a;hb=b805ef08e691299478b0d0c843eeab3f066c5872;hp=2cd068a6f1ef0199cc27a1564678c91b66237a9b;hpb=2c95fcf4f92c5d350852ef14aa5140bbe41005b3;p=git.git diff --git a/http-push.c b/http-push.c index 2cd068a6f..c9dd9a1f6 100644 --- a/http-push.c +++ b/http-push.c @@ -14,7 +14,7 @@ #include static const char http_push_usage[] = -"git-http-push [--all] [--dry-run] [--force] [--verbose] [...]\n"; +"git http-push [--all] [--dry-run] [--force] [--verbose] [...]\n"; #ifndef XML_STATUS_OK enum XML_Status { @@ -2237,7 +2237,7 @@ int main(int argc, char **argv) no_pragma_header = curl_slist_append(no_pragma_header, "Pragma:"); if (remote->url && remote->url[strlen(remote->url)-1] != '/') { - rewritten_url = malloc(strlen(remote->url)+2); + rewritten_url = xmalloc(strlen(remote->url)+2); strcpy(rewritten_url, remote->url); strcat(rewritten_url, "/"); remote->url = rewritten_url;