Article View: gnu.bash.bug
Article #828Abend when searching in vi-mode
From: Bjorn Engsig
Date: Tue, 12 Dec 1989 14:55
Date: Tue, 12 Dec 1989 14:55
26 lines
1332 bytes
1332 bytes
Bash 1.04 will abend (wonderful IBM term :-) if you search in vi-mode.
This is due to a wrong alloca argument. The context diffs for vi_mode.c
are below and have been sent to Brian.
*** vi_mode.c.old Tue Dec 12 15:43:39 1989
--- vi_mode.c Tue Dec 12 15:46:00 1989
***************
*** 78,84 ****
/* Reuse the line input buffer to read the search string. */
the_line[0] = 0;
rl_end = rl_point = 0;
! p = (char *)alloca (2 + rl_prompt ? strlen (rl_prompt) : 0);
sprintf (p, "%s%c", rl_prompt ? rl_prompt : "", key);
--- 78,84 ----
/* Reuse the line input buffer to read the search string. */
the_line[0] = 0;
rl_end = rl_point = 0;
! p = (char *)alloca (2 + (rl_prompt ? strlen (rl_prompt) : 0));
sprintf (p, "%s%c", rl_prompt ? rl_prompt : "", key);
--
Bjorn Engsig, Domain: bengsig@oracle.nl, bengsig@oracle.com
Path: uunet!{mcsun!orcenl,oracle}!bengsig
Technical Details
Message-ID:
<571.nlhp3@oracle.nl>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!orcenl!bengsigShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!orcenl!bengsig From: bengsig@oracle.nl (Bjorn Engsig) Newsgroups: gnu.bash.bug Subject: Abend when searching in vi-mode Message-ID: <571.nlhp3@oracle.nl> Date: 12 Dec 89 14:55:03 GMT Reply-To: bengsig@oracle.nl (Bjorn Engsig) Distribution: gnu Organization: ORACLE Europe, The Netherlands Lines: 26