search for: 01b7c6d

Displaying 3 results from an estimated 3 matches for "01b7c6d".

2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...t; + } > snprintf (buf, len, "PS1='mount-local-shell> ' %s --norc -i", shell); > r = system (buf); While this is just an example, making it not leak will make it a better example :) > diff --git a/fish/glob.c b/fish/glob.c > index 9fba42e..01b7c6d 100644 > --- a/fish/glob.c > +++ b/fish/glob.c > @@ -285,13 +296,19 @@ single_element_list (const char *element) > return pp; > } > > -static void > +static int > glob_issue (char *cmd, size_t argc, > char ***globs, size_t *posn, size_t *count, >...
2016 Mar 07
2
[PATCH v2] Use less stack.
...r, stdin) != NULL) { + while (fgets (buffer, BUFSIZ, stdin) != NULL) { /* Look for "END"<EOF> or "END\n" in input. */ size_t blen = strlen (buffer); if (STREQLEN (buffer, endmarker, markerlen) && diff --git a/fish/glob.c b/fish/glob.c index 9fba42e..01b7c6d 100644 --- a/fish/glob.c +++ b/fish/glob.c @@ -37,7 +37,7 @@ static char **expand_devicename (guestfs_h *g, const char *device); static int add_strings_matching (char **pp, const char *glob, char ***ret, size_t *size_r); static int add_string (const char *str, char ***ret, size_t *size_r); stati...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.