summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1aad91f)
raw | patch | inline | side by side (parent: 1aad91f)
author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 14 Sep 2007 07:31:09 +0000 (03:31 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Sep 2007 10:22:30 +0000 (03:22 -0700) |
We are adding a space between each argument in the sprintf above
so we must account for this as we update our position within the
reflog message and append in any remaining arguments.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
so we must account for this as we update our position within the
reflog message and append in any remaining arguments.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c | patch | blob | history |
diff --git a/builtin-fetch.c b/builtin-fetch.c
index c8c24d28a28d3160a4aa1ff401467ff4caaa59e8..016c6e43ece348ac0763a21c1cb6ae971e164f94 100644 (file)
--- a/builtin-fetch.c
+++ b/builtin-fetch.c
rla_offset = strlen(default_rla);
for (j = 1; j < argc; j++) {
sprintf(default_rla + rla_offset, " %s", argv[j]);
- rla_offset += strlen(argv[j]);
+ rla_offset += strlen(argv[j]) + 1;
}
if (i == argc)