summaryrefslogtreecommitdiffstats
path: root/lib/libedit
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-11-30 10:12:03 +0000
committerdfr <dfr@FreeBSD.org>1998-11-30 10:12:03 +0000
commit58c069dc390ac34ceaa539dd779b182f0cbd1704 (patch)
tree38a49c8e9d786084393698b561303f9c172371d6 /lib/libedit
parentfd4453bab9177c756fe6e5480167d47c97fd7a96 (diff)
downloadFreeBSD-src-58c069dc390ac34ceaa539dd779b182f0cbd1704.zip
FreeBSD-src-58c069dc390ac34ceaa539dd779b182f0cbd1704.tar.gz
On the alpha, sizeof(char*) != sizeof(int) which was assumed in
term_init(). This is the cause of /usr/bin/ftp faulting on the alpha. Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/term.c b/lib/libedit/term.c
index 442583b..90ebf95 100644
--- a/lib/libedit/term.c
+++ b/lib/libedit/term.c
@@ -240,7 +240,7 @@ term_init(el)
el->el_term.t_str = (char **) el_malloc(T_str * sizeof(char*));
(void) memset(el->el_term.t_str, 0, T_str * sizeof(char*));
el->el_term.t_val = (int *) el_malloc(T_val * sizeof(int));
- (void) memset(el->el_term.t_val, 0, T_val * sizeof(char*));
+ (void) memset(el->el_term.t_val, 0, T_val * sizeof(int));
term_outfile = el->el_outfile;
(void) term_set(el, NULL);
term_init_arrow(el);
OpenPOWER on IntegriCloud