Code

Use strlcpy instead of strncpy in mailmap.c
authorAlex Riesen <raa.lkml@gmail.com>
Mon, 30 Apr 2007 22:22:53 +0000 (00:22 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 30 Apr 2007 23:57:47 +0000 (16:57 -0700)
commit600682aaa12c56d55bd24233828205c43ece2ded
tree61377547211bac12beb6203ec4a203369ba1b36f
parenta07157ac624b2524a059a3414e99f6f44bebc1e7
Use strlcpy instead of strncpy in mailmap.c

strncpy does not NUL-terminate output in case of output buffer too short,
and map_email prototype (and usage) does not allow for figuring out
what the length of the name is.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
mailmap.c