Displaying 3 results from an estimated 3 matches for "run_hexedit".
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...int *r)
> {
> size_t i;
> - char *argv[argc+1];
> + CLEANUP_FREE char **argv;
Missing "= NULL" here.
> diff --git a/fish/hexedit.c b/fish/hexedit.c
> index 9f051aa..b8c0a91 100644
> --- a/fish/hexedit.c
> +++ b/fish/hexedit.c
> @@ -100,7 +100,8 @@ run_hexedit (const char *cmd, size_t argc, char *argv[])
> const char *editor;
> int r;
> struct stat oldstat, newstat;
> - char buf[BUFSIZ];
> + CLEANUP_FREE char *tmpfd = NULL;
> + CLEANUP_FREE char *editcmd = NULL;
>
> CLEANUP_FREE char *tmpdir = guestfs_get_tmpdir (...
2016 Mar 07
2
[PATCH v2] Use less stack.
...L;
@@ -310,7 +327,7 @@ glob_issue (char *cmd, size_t argc,
posn[i] = 0;
}
if (i == 0) /* All done. */
- return;
+ return 0;
goto again;
}
diff --git a/fish/hexedit.c b/fish/hexedit.c
index 9f051aa..b8c0a91 100644
--- a/fish/hexedit.c
+++ b/fish/hexedit.c
@@ -100,7 +100,8 @@ run_hexedit (const char *cmd, size_t argc, char *argv[])
const char *editor;
int r;
struct stat oldstat, newstat;
- char buf[BUFSIZ];
+ CLEANUP_FREE char *tmpfd = NULL;
+ CLEANUP_FREE char *editcmd = NULL;
CLEANUP_FREE char *tmpdir = guestfs_get_tmpdir (g), *tmp = NULL;
if (asprintf (&t...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames.
Rich.