From: Jeff King Date: Thu, 24 Sep 2015 21:08:05 +0000 (-0400) Subject: drop strcpy in favor of raw sha1_to_hex X-Git-Tag: v2.7.0-rc0~87^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2b87d3a89633fb6078203a77d2610175f94cef95?ds=inline;hp=2b87d3a89633fb6078203a77d2610175f94cef95 drop strcpy in favor of raw sha1_to_hex In some cases where we strcpy() the result of sha1_to_hex(), there's no need; the result goes directly into a printf statement, and we can simply pass the return value from sha1_to_hex() directly. When this code was originally written, sha1_to_hex used a single buffer, and it was not safe to use it twice within a single expression. That changed as of dcb3450 (sha1_to_hex() usage cleanup, 2006-05-03), but this code was never updated. History-dug-by: Eric Sunshine Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---