]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mailmap: debug: fix malformed fprintf() format conversion specification
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 15 Jul 2013 06:54:10 +0000 (02:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jul 2013 15:19:56 +0000 (08:19 -0700)
Resolve segmentation fault due to size_t variable being consumed by
'%s'.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailmap.c

index 051635472decd31aefcdeed327eb51a5e9d45497..62d998a37ca2a073210b4dda07f03184a53ae6ab 100644 (file)
--- a/mailmap.c
+++ b/mailmap.c
@@ -337,7 +337,7 @@ int map_user(struct string_list *map,
                                *name = mi->name;
                                *namelen = strlen(*name);
                }
-               debug_mm("map_user:  to '%.*s' <.*%s>\n", *namelen, *name,
+               debug_mm("map_user:  to '%.*s' <%.*s>\n", *namelen, *name,
                                 *emaillen, *email);
                return 1;
        }