From 82a883ede7e47616aba041a5eb36e08666ef9177 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 27 Sep 2010 07:58:01 +0200 Subject: Use GIT-1.7.3 This fixes http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-2542. Noticed-by: Silvio Cesare Signed-off-by: Lars Hjemli --- cgit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index 6c7e811..ad62d10 100644 --- a/cgit.c +++ b/cgit.c @@ -21,7 +21,7 @@ void add_mimetype(const char *name, const char *value) { struct string_list_item *item; - item = string_list_insert(xstrdup(name), &ctx.cfg.mimetypes); + item = string_list_insert(&ctx.cfg.mimetypes, xstrdup(name)); item->util = xstrdup(value); } -- cgit v1.2.3-70-g09d2