Revision 1e80e0449248edb77b0fb9853f4a3404a599e207 authored by Johannes Schindelin on 22 December 2005, 17:55:59 UTC, committed by Junio C Hamano on 22 December 2005, 20:52:37 UTC
sha1_to_hex() returns a pointer to a static buffer. Some of its users modify that buffer by appending a newline character. Other users rely on the fact that you can call printf("%s", sha1_to_hex(sha1)); Just to be on the safe side, terminate the SHA1 in sha1_to_hex(). Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent a14c225
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 22 bytes |
Makefile | -rw-r--r-- | 1.2 KB |
branches-- | -rw-r--r-- | 47 bytes |
hooks--applypatch-msg | -rw-r--r-- | 426 bytes |
hooks--commit-msg | -rw-r--r-- | 528 bytes |
hooks--post-commit | -rw-r--r-- | 152 bytes |
hooks--post-update | -rw-r--r-- | 207 bytes |
hooks--pre-applypatch | -rw-r--r-- | 373 bytes |
hooks--pre-commit | -rw-r--r-- | 1.4 KB |
hooks--update | -rw-r--r-- | 675 bytes |
info--exclude | -rw-r--r-- | 240 bytes |
remotes-- | -rw-r--r-- | 47 bytes |
this--description | -rw-r--r-- | 58 bytes |
Computing file changes ...