git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Don't emit warnings about stack protector failures.
[libguestfs.git]
/
fish
/
edit.c
diff --git
a/fish/edit.c
b/fish/edit.c
index
10950f9
..
a9539ba
100644
(file)
--- a/
fish/edit.c
+++ b/
fish/edit.c
@@
-32,9
+32,9
@@
/* guestfish edit command, suggested by Ján Ondrej, implemented by RWMJ */
int
/* guestfish edit command, suggested by Ján Ondrej, implemented by RWMJ */
int
-
do_edit (const char *cmd, in
t argc, char *argv[])
+
run_edit (const char *cmd, size_
t argc, char *argv[])
{
{
-
char filename[] = "/tmp/guestfishXXXXXX"
;
+
TMP_TEMPLATE_ON_STACK (filename)
;
char buf[256];
const char *editor;
struct stat oldstat, newstat;
char buf[256];
const char *editor;
struct stat oldstat, newstat;