git_snpath(): retire and replace with strbuf_git_path()
[gitweb.git] / fast-import.c
index d0bd285a16d0161b50d0b43e0315f8fa003e0e32..30181304d66100a8d0bc09579d6f8e9bca749a95 100644 (file)
@@ -405,7 +405,7 @@ static void dump_marks_helper(FILE *, uintmax_t, struct mark_set *);
 
 static void write_crash_report(const char *err)
 {
-       char *loc = git_path("fast_import_crash_%"PRIuMAX, (uintmax_t) getpid());
+       const char *loc = git_path("fast_import_crash_%"PRIuMAX, (uintmax_t) getpid());
        FILE *rpt = fopen(loc, "w");
        struct branch *b;
        unsigned long lu;