mailmap: debug: fix out-of-order fprintf() arguments
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 15 Jul 2013 06:54:09 +0000 (02:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jul 2013 15:18:04 +0000 (08:18 -0700)
Resolve segmentation fault due to arguments passed in wrong order.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailmap.c
index a7e92db3d66b23deae11eb546f80588b6487cf1a..051635472decd31aefcdeed327eb51a5e9d45497 100644 (file)
--- a/mailmap.c
+++ b/mailmap.c
@@ -309,7 +309,7 @@ int map_user(struct string_list *map,
        struct mailmap_entry *me;
 
        debug_mm("map_user: map '%.*s' <%.*s>\n",
-                *name, *namelen, *emaillen, *email);
+                *namelen, *name, *emaillen, *email);
 
        item = lookup_prefix(map, *email, *emaillen);
        if (item != NULL) {