summaryrefslogtreecommitdiffstats
path: root/fish/hexedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/hexedit.c')
-rw-r--r--fish/hexedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/hexedit.c b/fish/hexedit.c
index dfa18890..bd3efc8e 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");