Do not name "repo" struct "remote" in push_http.c
[gitweb.git] / builtin-pack-objects.c
index cb51916fe33a904b8ab11b7c43dfe3a84ec11705..bcefa52c69481ceb301a96af6402ca2a029144fb 100644 (file)
@@ -488,9 +488,8 @@ static void write_pack_file(void)
                } else {
                        char tmpname[PATH_MAX];
                        int fd;
-                       snprintf(tmpname, sizeof(tmpname),
-                                "%s/pack/tmp_pack_XXXXXX", get_object_directory());
-                       fd = xmkstemp(tmpname);
+                       fd = odb_mkstemp(tmpname, sizeof(tmpname),
+                                        "pack/tmp_pack_XXXXXX");
                        pack_tmp_name = xstrdup(tmpname);
                        f = sha1fd(fd, pack_tmp_name);
                }