projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fetch, pull: ask config for remote information
[git.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index
f2d33af
..
5464828
100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-108,9
+108,10
@@
int safe_create_leading_directories(char *path)
char * sha1_to_hex(const unsigned char *sha1)
{
char * sha1_to_hex(const unsigned char *sha1)
{
- static char buffer[50];
+ static int bufno;
+ static char hexbuffer[4][50];
static const char hex[] = "0123456789abcdef";
static const char hex[] = "0123456789abcdef";
- char *buf = buffer;
+ char *buf
fer = hexbuffer[3 & ++bufno], *buf
= buffer;
int i;
for (i = 0; i < 20; i++) {
int i;
for (i = 0; i < 20; i++) {