summaryrefslogtreecommitdiffstats
path: root/lib/libedit/map.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge libedit fixes from NetBSDemaste2015-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | Add trailing NULL's to the varargs functions as required. (John Spencer) readline.c r1.106 Bounds search for reallocated index, from OpenBSD via Andreas Fett map.c 1.34 map.h 1.10 parse.c 1.27 read.c 1.71 This is a direct commit to stable/10 as these changes are included in a broader sync with NetBSD committed by bapt@ in r276881. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D1728
* libedit: bind the correct command when using "bind -k".pfg2013-01-011-2/+2
| | | | | | | | | | | "ed-argument-digit" (i. e. command 0) was incorrectly used instead. This bug comes from the original sources imported in 1994 and has been confirmed in upstream NetBSD. Reported by: Yamagi Burmeister Submitted by: Christoph Mallon MFC after: 3 days
* Merge the following changes from NetBSD:stefanf2007-03-111-2/+2
| | | | | | | | | | | | | history.c 1.32: # Fix memory leak found by valgrind (Julien Torres) map.c 1.24: # fix debugging printf format. read.c 1.40: # Fix bug with multiple pending el_pushes. Reported by Julien Torres. tty.c 1.24: # Coverity CID 1216: Prevent negative index use. MFC after: 3 weeks
* Merge the following changes from NetBSD:stefanf2007-03-111-14/+21
| | | | | | | | | | | | | | | | | chared.h 1.17, common.c 1.19, emacs.c 1.21, key.c 1.18, key.h 1.9, map.c 1.23, term.c 1.42, term.h 1.17, vi.c 1.25: # Print the actual eofc, instead of ^D\b\b. # Change internal character decoding to prevent buffer oveflows. key.c 1.19, key.h 1.10: # move declaration to header file. term.c 1.43: # Coverity CID 806: Prevent NULL deref term.c 1.44: # Coverity CID 1668: Plug memory leak. term.c 1.45: # Fix compilation. MFC after: 3 weeks
* Merge makelist rev 1.10 and map.c rev 1.22 from NetBSD. They just patch thestefanf2005-10-041-12/+13
| | | | | bug fixed in the last commit to map.c in a different way. Follow NetBSD to facilitate future merges.
* Don't forget to copy the sentinel into the `help' array. It's expected tostefanf2005-08-081-2/+2
| | | | | | | be there. Submitted by: Björn König PR: 82381
* Sync libedit with recent NetBSD developments. Including improvements to thestefanf2005-08-071-157/+153
| | | | | | | vi-mode, removal of clause 3, cleanups and the export of the tokenization functions. Not included: config.h, filecomplete.{c,h}
* Revert the replacement of realloc() with reallocf() (el.h:1.2, map.c:1.5 andstefanf2005-08-071-2/+2
| | | | | | tokenizer.c:1.3). Contrary to the commit log there were no memory leaks, but the change introduced a bug because the free'd pointer was not zeroed and calling the appropriate _end() function would call free() a second time.
* Fix ID's after a total boch CVS merge due to multiple people makingobrien2001-10-011-2/+0
| | | | | | | | commits to these files. As I sing to CVS: Have I told you lately that I hate your guts? Have I told you all SCM's are above you? You fill my heart with pain, take away all my merging joy, grow my troubles that's what you do."
* + Sync with NetBSD, bringing in feature enhancements.obrien2001-10-011-1199/+1218
| | | | | | | + Convert to ANSI-C function definitions + style(9) Submitted by: kris
* Add __FBSDID()s to libeditdillon2001-09-301-0/+2
|
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-161-2/+2
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
* Fixes assorted problems with the history edit functions in libedit. Thisbrian1998-06-271-1/+1
| | | | | | | affects sh, ftp (and others?). Submitted by: Max Euston <meuston@jmrodgers.com> PR: 6516
* Update libedit with changes from NetBSD. Includes history load/save,msmith1997-06-251-1/+1
| | | | | | | some buffer overflow guards and some stylistic cleanups. Also adds manpages. Obtained from: NetBSD
* Remove trailing whitespace.rgrimes1995-05-301-25/+25
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+1397
OpenPOWER on IntegriCloud