Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Extend index to save more flags
[gitweb.git]
/
builtin-http-fetch.c
diff --git
a/builtin-http-fetch.c
b/builtin-http-fetch.c
index 03f34d767ddfc3c7bc9b18d28ec7350d47564679..f3e63d7206604029504aaf85b3d2e7731d054d2c 100644
(file)
--- a/
builtin-http-fetch.c
+++ b/
builtin-http-fetch.c
@@
-53,7
+53,7
@@
int cmd_http_fetch(int argc, const char **argv, const char *prefix)
}
url = argv[arg];
if (url && url[strlen(url)-1] != '/') {
- rewritten_url = malloc(strlen(url)+2);
+ rewritten_url =
x
malloc(strlen(url)+2);
strcpy(rewritten_url, url);
strcat(rewritten_url, "/");
url = rewritten_url;