Skip to content

Commit

Permalink
mailmap: debug: fix malformed fprintf() format conversion specification
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sunshine authored and Junio C Hamano committed Jul 15, 2013
1 parent c10be0c commit 0939a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0939a24

Please sign in to comment.