check_aliased_update: strcpy() instead of strcat() to copy
authorThomas Rast <redacted>
Thu, 10 Jun 2010 18:43:51 +0000 (20:43 +0200)
committerJunio C Hamano <redacted>
Fri, 11 Jun 2010 20:51:27 +0000 (13:51 -0700)
commit0e71bc300432b9e63bdbc8e28b0c5c0fafb601fc
treeb4afbd74f664c8b1400ec85d45abd079da401399
parentda3efdb17bef25dedc753131462ee784d822132e
check_aliased_update: strcpy() instead of strcat() to copy

da3efdb (receive-pack: detect aliased updates which can occur with
symrefs, 2010-04-19) introduced two strcat() into uninitialized
strings.  The intent was clearly make a copy of the static buffer used
by find_unique_abbrev(), so use strcpy() instead.

Signed-off-by: Thomas Rast <redacted>
Reported-by: Ævar Arnfjörð Bjarmason <redacted>
Tested-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin-receive-pack.c
git clone https://git.99rst.org/PROJECT