search for: markerlen

Displaying 2 results from an estimated 2 matches for "markerlen".

2016 Mar 07
2
[PATCH v2] Use less stack.
...or ("event handler: fork"); diff --git a/fish/fish.c b/fish/fish.c index d26f8b3..1e29639 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1843,9 +1843,15 @@ file_in_heredoc (const char *endmarker) CLEANUP_FREE char *tmpdir = guestfs_get_tmpdir (g), *template = NULL; int fd; size_t markerlen; - char buffer[BUFSIZ]; + CLEANUP_FREE char *buffer = NULL; int write_error = 0; + buffer = malloc (BUFSIZ); + if (buffer == NULL) { + perror ("malloc"); + return NULL; + } + if (asprintf (&template, "%s/guestfishXXXXXX", tmpdir) == -1) { perror (&quo...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.