X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Findex-pack.c;h=af7dc37a441d12bc4283ac730524e07a582d014f;hb=38ca63f3c0ef70ba4e41d3b5e347e2c7e7d67fe5;hp=98025da7670aaa9f79bfc7faa3a26c4079682fbb;hpb=6fee20df5c0f233415790cae4accf386fee67923;p=git.git diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 98025da76..af7dc37a4 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -172,10 +172,10 @@ static const char *open_pack_file(const char *pack_name) if (from_stdin) { input_fd = 0; if (!pack_name) { - static char tmpfile[PATH_MAX]; - output_fd = odb_mkstemp(tmpfile, sizeof(tmpfile), + static char tmp_file[PATH_MAX]; + output_fd = odb_mkstemp(tmp_file, sizeof(tmp_file), "pack/tmp_pack_XXXXXX"); - pack_name = xstrdup(tmpfile); + pack_name = xstrdup(tmp_file); } else output_fd = open(pack_name, O_CREAT|O_EXCL|O_RDWR, 0600); if (output_fd < 0)