summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-07-18 13:51:54 +0000
committerwosch <wosch@FreeBSD.org>1997-07-18 13:51:54 +0000
commit2eae8190256a05c92aa3483eacdcd62e7f33ee53 (patch)
tree7cc3959f4104e95012edd9017ea50dd84c5ccf01 /usr.bin
parent3cd604941d6d7716ccc19d36eb988ab5b4a1e0bb (diff)
downloadFreeBSD-src-2eae8190256a05c92aa3483eacdcd62e7f33ee53.zip
FreeBSD-src-2eae8190256a05c92aa3483eacdcd62e7f33ee53.tar.gz
A not initialized variable forced malloc to abort if the user
press ^Z (undelete line). Detected by: /etc/malloc.conf -> AJ
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ee/ee.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ee/ee.c b/usr.bin/ee/ee.c
index 8f6650cc..fe6ee74 100644
--- a/usr.bin/ee/ee.c
+++ b/usr.bin/ee/ee.c
@@ -49,7 +49,7 @@
| proprietary information which is protected by
| copyright. All rights are reserved.
|
- | $Header: /home/ncvs/src/usr.bin/ee/ee.c,v 1.6 1996/05/27 20:59:36 joerg Exp $
+ | $Header: /home/ncvs/src/usr.bin/ee/ee.c,v 1.7 1996/12/29 10:54:10 joerg Exp $
|
*/
@@ -62,7 +62,7 @@ char *ee_long_notice[] = {
"copyright. All rights are reserved."
};
-char *version = "@(#) ee, version 1.3 $Revision: 1.1.1.2 $";
+char *version = "@(#) ee, version 1.3 $Revision: 1.7 $";
#ifdef NCURSE
#include "new_curse.h"
@@ -559,6 +559,7 @@ char *argv[];
d_line = NULL;
dlt_line = txtalloc();
dlt_line->line = d_line;
+ dlt_line->line_length = 1;
curr_line = first_line = txtalloc();
curr_line->line = point = malloc(10);
curr_line->line_length = 1;
OpenPOWER on IntegriCloud