From 4ec99bf080f2d95c7c3d706f65eea1c6b9302f23 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 9 Aug 2005 18:30:22 +0300 Subject: [PATCH] -Werror fixes GCC's format __attribute__ is good for checking errors, especially with -Wformat=2 parameter. This fixes most of the reported problems against 2005-08-09 snapshot. --- clone-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clone-pack.c') diff --git a/clone-pack.c b/clone-pack.c index e9c20dee71..49820c6579 100644 --- a/clone-pack.c +++ b/clone-pack.c @@ -30,7 +30,7 @@ static int is_master(struct ref *ref) static void write_one_ref(struct ref *ref) { - char *path = git_path(ref->name); + char *path = git_path("%s", ref->name); int fd; char *hex; -- cgit v1.2.1