Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ne/pack-local-doc' into maint
[gitweb.git]
/
builtin-push.c
diff --git
a/builtin-push.c
b/builtin-push.c
index 5df66081a6ff0ca5087ff9a2ac4042d8ec651499..5633f0ade49f7c845665b7aab202be18a8cc9d8d 100644
(file)
--- a/
builtin-push.c
+++ b/
builtin-push.c
@@
-52,7
+52,7
@@
static void set_refspecs(const char **refs, int nr)
} else if (deleterefs && !strchr(ref, ':')) {
char *delref;
int len = strlen(ref)+1;
- delref = xmalloc(len);
+ delref = xmalloc(len
+1
);
strcpy(delref, ":");
strcat(delref, ref);
ref = delref;