checkout: do not make a temporary copy of symlink target.
[gitweb.git] / sha1_file.c
index 601147351d251b305c122dcfae6dbdae72b08bb5..d451a94efed7d36d55cf1b77324eaf55e0d50d69 100644 (file)
@@ -81,6 +81,8 @@ char * sha1_to_hex(const unsigned char *sha1)
                *buf++ = hex[val >> 4];
                *buf++ = hex[val & 0xf];
        }
+       *buf = '\0';
+
        return buffer;
 }