mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 12:40:42 +02:00
readline fix for rl_undo_list pointer aliasing; arith command sets word_top
This commit is contained in:
+1
-1
@@ -477,7 +477,7 @@ indirection_level_string (void)
|
||||
/* Dynamically resize indirection_string so we have room for everything
|
||||
and we don't have to truncate ps4 */
|
||||
ineed = (ps4_firstc_len * indirection_level) + strlen (ps4);
|
||||
if (ineed > indirection_stringsiz - 1)
|
||||
if (ineed + 1 > indirection_stringsiz)
|
||||
{
|
||||
indirection_stringsiz = ineed + 1;
|
||||
indirection_string = xrealloc (indirection_string, indirection_stringsiz);
|
||||
|
||||
Reference in New Issue
Block a user