mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-02 18:00:49 +02:00
fix for completing quoted filenames with show-all-if-ambiguous set; avoid signed int overflow in intrand32
This commit is contained in:
@@ -464,6 +464,13 @@ set_buffered_stream (int fd, BUFFERED_STREAM *bp)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Return the BUFFERED_STREAM associated with FD, if any. */
|
||||
BUFFERED_STREAM *
|
||||
get_buffered_stream (int fd)
|
||||
{
|
||||
return (buffers && fd < nbuffers) ? buffers[fd] : (BUFFERED_STREAM *)0;
|
||||
}
|
||||
|
||||
/* Read a buffer full of characters from BP, a buffered stream. */
|
||||
static int
|
||||
b_fill_buffer (BUFFERED_STREAM *bp)
|
||||
|
||||
Reference in New Issue
Block a user