git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New API: pwrite-device
[libguestfs.git]
/
fish
/
hexedit.c
diff --git
a/fish/hexedit.c
b/fish/hexedit.c
index
dfa1889
..
bd3efc8
100644
(file)
--- 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");