This still does not actually parse and accept anything more than the list of server capabilities, but prepares for the uploader that sends more "extra" information than that. Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx> --- connect.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/connect.c b/connect.c index 932c503..114d691 100644 --- a/connect.c +++ b/connect.c @@ -59,8 +59,11 @@ static void read_extra_info(char *line, int len) * The first such "extra" piece of information is the list of * server capabilities. */ + int infolen = strlen(line) + 1; + free(server_capabilities); - server_capabilities = xstrdup(line); + server_capabilities = xmalloc(infolen); + memcpy(server_capabilities, line, infolen); } /* -- 1.6.0.4.864.g0f47a -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html