summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b32e986)
raw | patch | inline | side by side (parent: b32e986)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 5 Aug 2005 23:50:54 +0000 (16:50 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 5 Aug 2005 23:50:54 +0000 (16:50 -0700) |
When a new ref is being pushed, the name of it was not
terminated properly.
Signed-off-by: Junio C Hamano <junkio@cox.net>
terminated properly.
Signed-off-by: Junio C Hamano <junkio@cox.net>
connect.c | patch | blob | history |
diff --git a/connect.c b/connect.c
index a20af1ce0c5c006db6197c6cc9c6746d5c2ef66a..3953a1af3d321091d53a1381ded0be1abb4d9deb 100644 (file)
--- a/connect.c
+++ b/connect.c
/* pushing "master:master" when
* remote does not have master yet.
*/
- int len = strlen(matched_src->name);
+ int len = strlen(matched_src->name) + 1;
matched_dst = xcalloc(1, sizeof(*dst) + len);
memcpy(matched_dst->name, matched_src->name,
len);