bash-5.0 distribution sources and documentation

This commit is contained in:
Chet Ramey
2019-01-07 09:27:52 -05:00
parent 6444760999
commit d233b485e8
528 changed files with 84836 additions and 67099 deletions
+2 -2
View File
@@ -522,6 +522,7 @@ read_man_page(char *filename)
man_buf[buf_size] = '\n';
man_buf[buf_size + 1] = man_buf[buf_size + 2] = '\0';
} else {
free(man_buf);
man_buf = NULL;
}
fclose(man_stream);
@@ -1992,7 +1993,7 @@ unescape (char *c)
while (i < l && c[i]) {
if (c[i] == '\a') {
if (c[i+1])
strcpy(c + i, c + i + 1); /* should be memmove */
memmove (c + i, c + i + 1, l - i);
else {
c[i] = '\0';
break;
@@ -2562,7 +2563,6 @@ scan_request(char *c)
h = name;
if (stat(h, &stbuf) != -1)
l = stbuf.st_size;
buf = stralloc(l + 4);
#if NOCGI
if (!out_length) {
char *t, *s;