summaryrefslogtreecommitdiff
path: root/t/t556x_common
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-07-15 22:20:54 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-17 14:55:10 -0700
commit177366415b95fb72bc2c37d55a936ff101986285 (patch)
tree51a96546371b788e5e11e4e28dddcb60a372a079 /t/t556x_common
parentuse MOVE_ARRAY (diff)
downloadtgif-177366415b95fb72bc2c37d55a936ff101986285.tar.xz
apply: use COPY_ARRAY and MOVE_ARRAY in update_image()
Simplify the code by using the helper macros COPY_ARRAY and MOVE_ARRAY, which also makes them more robust in the case we copy or move no lines, as they allow using NULL points in that case, while memcpy(3) and memmove(3) don't. Found with Clang's UBSan. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t556x_common')
0 files changed, 0 insertions, 0 deletions