diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2013-03-16 19:29:31 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-17 00:10:51 -0700 |
commit | b2981d06226ab0fdabf9110c3be7104110b307ae (patch) | |
tree | aae8ba7d3933a96e6f6fb4c245d87a159209e446 /blob.h | |
parent | Makefile: keep LIB_H entries together and sorted (diff) | |
download | tgif-b2981d06226ab0fdabf9110c3be7104110b307ae.tar.xz |
sha1_name: pass object name length to diagnose_invalid_sha1_path()
The only caller of diagnose_invalid_sha1_path() extracts a substring from
an object name by creating a NUL-terminated copy of the interesting part.
Add a length parameter to the function and thus avoid the need for an
allocation, thereby simplifying the code.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions