author | Thomas Rast <trast@student.ethz.ch> | |
Thu, 10 Jun 2010 18:43:51 +0000 (20:43 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 11 Jun 2010 20:51:27 +0000 (13:51 -0700) | ||
commit | 0e71bc300432b9e63bdbc8e28b0c5c0fafb601fc | |
tree | b4afbd74f664c8b1400ec85d45abd079da401399 | tree | snapshot |
parent | da3efdb17bef25dedc753131462ee784d822132e | commit | diff |
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 <trast@student.ethz.ch>
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Tested-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <trast@student.ethz.ch>
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Tested-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-receive-pack.c | diff | blob | history |