From 3e0f4b28d66ca0cd7e5abeebc94e107f61523fe1 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Mon, 30 Nov 1998 10:12:03 +0000 Subject: [PATCH] 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 --- lib/libedit/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libedit/term.c b/lib/libedit/term.c index 442583b09462..90ebf9522c93 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);