X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Finspect.c;h=1b41be58be2904e9d108249b5740f1af712123ae;hp=e83e8241cf6a7a64f692a43a1074af3fcf54550d;hb=5d48250224fcb140b7e6e17f36b37deab4e0659b;hpb=6e6b3ff35f9baafb22d5459ca13c112b1e00ae1b diff --git a/src/inspect.c b/src/inspect.c index e83e824..1b41be5 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; }