Revision 21f9d0f6f2ef54185359d2d1c180770f85127199 authored by Jeff King on 22 February 2016, 22:45:05 UTC, committed by Junio C Hamano on 22 February 2016, 22:51:09 UTC
This function uses xcalloc and two memcpy calls to
concatenate two strings. We can do this as an xstrfmt
one-liner, and then it is more clear that we are allocating
the correct amount of memory.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7eb45b5
History
File Mode Size
sha1.c -rw-r--r-- 1.4 KB
sha1.h -rw-r--r-- 579 bytes
sha1ppc.S -rw-r--r-- 7.3 KB

back to top