l10n: ko.po: Update Korean translation
[gitweb.git] / sha1_name.c
index c71fc172f55dcfed6cda15220151231557f4e5a6..06409a38451971121e6cf6abd4a8af5bffd231c1 100644 (file)
@@ -508,7 +508,9 @@ int find_unique_abbrev_r(char *hex, const unsigned char *sha1, int len)
 
 const char *find_unique_abbrev(const unsigned char *sha1, int len)
 {
-       static char hex[GIT_SHA1_HEXSZ + 1];
+       static int bufno;
+       static char hexbuffer[4][GIT_SHA1_HEXSZ + 1];
+       char *hex = hexbuffer[3 & ++bufno];
        find_unique_abbrev_r(hex, sha1, len);
        return hex;
 }