Skip to content
  • Jeff King's avatar
    entry.c: convert strcpy to xsnprintf · 330c8e26
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    This particular conversion is non-obvious, because nobody
    has passed our function the length of the destination
    buffer. However, the interface to checkout_entry specifies
    that the buffer must be at least TEMPORARY_FILENAME_LENGTH
    bytes long, so we can check that (meaning the existing code
    was not buggy, but merely worrisome to somebody reading it).
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    330c8e26