Displaying 2 results from an estimated 2 matches for "using_history".
2006 Mar 22
1
tftpd-hpa-0.42 bug when hitting ^C
Start tftp with no host name
Enter a host name
When looking at the tftp> prompt press ^C
$ tftp
(to) localhost
tftp>
*** glibc detected *** double free or corruption (fasttop): 0x08b8b9c0 ***
Aborted
I've attached a patch fixing this issue but I'm not convinced this is the right way to do it.
Radek
--
Radek Vok?l <rvokal at redhat.com>
-------------- next part
2002 Jul 10
0
history patch (was Re: portable snprintf implementation)
...RJVB: Only add lines that are not identical to the previous line.
This is a very cheap
! \ way to reduce the history size, and to reduce the time the user may
spent searching it!
! \ For this to work properly, we (apparently) need to initialise the
history mechanism with
! \ the call to using_history().
! */
! HIST_ENTRY *prev= current_history();
! if( !called ){
! using_history();
! called= TRUE;
! }
! if( !prev ){
! /* It is possible that current_history() returns NULL while there
is a history. In that case,
! \ back up one entry, and if that...