summaryrefslogtreecommitdiff
path: root/update-server-info.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2008-10-23 04:32:23 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-11-01 23:46:53 -0700
commit1442171bc913a9cddae5c6ad0d0a4be3a1ca86e8 (patch)
treec81f4f11de2093f448d196ed53ae246de87bbe23 /update-server-info.c
parentpack-objects: avoid reading uninitalized data (diff)
downloadtgif-1442171bc913a9cddae5c6ad0d0a4be3a1ca86e8.tar.xz
fix overlapping memcpy in normalize_absolute_path
The comments for normalize_absolute_path explicitly claim that the source and destination buffers may be the same (though they may not otherwise overlap). Thus the call to memcpy may involve copying overlapping data, and memmove should be used instead. This fixes a valgrind error in t1504. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'update-server-info.c')
0 files changed, 0 insertions, 0 deletions