From: Rafael Gieschke Date: Mon, 16 May 2011 20:08:21 +0000 (+0200) Subject: copy_gecos: fix not adding nlen to len when processing "&" X-Git-Tag: v1.7.5.3~10^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c0336ff27a9a4bf9db87d65c5dec1ebf7dd9f8c6?hp=c0336ff27a9a4bf9db87d65c5dec1ebf7dd9f8c6 copy_gecos: fix not adding nlen to len when processing "&" nlen has to be added to len when inserting (capitalized) pw_name as substitution for "&" in pw_gecos. Otherwise, pw_gecos will be truncated and data might be written beyond name+sz. Signed-off-by: Rafael Gieschke Signed-off-by: Junio C Hamano ---