sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 30da327fbd27eee508c5492a763ea19d7cd9e281
parent 2304df908c2f0741fb72c6d03e1f45fffdf69649
Author: Thomas Mannay <audiobarrier@openmailbox.org>
Date:   Sun,  9 Oct 2016 23:13:13 +0000

ed: remove double free in join()

Diffstat:
Med.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ed.c b/ed.c @@ -809,9 +809,8 @@ join(void) int i; char *t, c; size_t len = 0, cap = 0; - static char *s; + char *s; - free(s); for (s = NULL, i = line1;; i = nextln(i)) { for (t = gettxt(i); (c = *t) != '\n'; ++t) s = addchar(*t, s, &cap, &len);