Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
clone -q: honor "quiet" option over native transports.
[gitweb.git]
/
builtin-upload-archive.c
diff --git
a/builtin-upload-archive.c
b/builtin-upload-archive.c
index 48ae09e9b5268ce1f11cfba433680a147ca39f7e..371400d49a5ff9f6ce297d7af07eb3fd6426c9ee 100644
(file)
--- a/
builtin-upload-archive.c
+++ b/
builtin-upload-archive.c
@@
-30,7
+30,7
@@
static int run_upload_archive(int argc, const char **argv, const char *prefix)
if (argc != 2)
usage(upload_archive_usage);
- if (strlen(argv[1]) > sizeof(buf))
+ if (strlen(argv[1])
+ 1
> sizeof(buf))
die("insanely long repository name");
strcpy(buf, argv[1]); /* enter-repo smudges its argument */