X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Fhexedit.c;h=bd3efc8e57f3deef50be8b06899ea649f827d2d8;hb=fcd75e021a12fbd93c4d51fbca7844fdb4f7436f;hp=dfa188905c04c6972d843d0489da991c7ec20830;hpb=d75a2bff1264828f02b68a9c8bc7eb2521bd6684;p=libguestfs.git diff --git a/fish/hexedit.c b/fish/hexedit.c index dfa1889..bd3efc8 100644 --- a/fish/hexedit.c +++ b/fish/hexedit.c @@ -100,7 +100,7 @@ run_hexedit (const char *cmd, int argc, char *argv[]) int r; struct stat oldstat, newstat; char buf[BUFSIZ]; - char tmp[] = "/tmp/guestfishXXXXXX"; + TMP_TEMPLATE_ON_STACK (tmp); int fd = mkstemp (tmp); if (fd == -1) { perror ("mkstemp");