summaryrefslogtreecommitdiff
path: root/builtin/receive-pack.c
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@student.ethz.ch>2010-06-10 20:43:51 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-11 13:51:27 -0700
commit0e71bc300432b9e63bdbc8e28b0c5c0fafb601fc (patch)
treeb4afbd74f664c8b1400ec85d45abd079da401399 /builtin/receive-pack.c
parentreceive-pack: detect aliased updates which can occur with symrefs (diff)
downloadtgif-0e71bc300432b9e63bdbc8e28b0c5c0fafb601fc.tar.xz
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>
Diffstat (limited to 'builtin/receive-pack.c')
0 files changed, 0 insertions, 0 deletions