diff options
-rw-r--r-- | src/inspect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspect.c b/src/inspect.c index e83e8241..1b41be58 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -719,7 +719,7 @@ guestfs___download_to_tmp (guestfs_h *g, struct inspect_fs *fs, int64_t size; /* Make the basename unique by prefixing it with the fs number. */ - if (asprintf (&r, "%s/%ld-%s", g->tmpdir, fs - g->fses, basename) == -1) { + if (asprintf (&r, "%s/%td-%s", g->tmpdir, fs - g->fses, basename) == -1) { perrorf (g, "asprintf"); return NULL; } |