mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 11:02:44 +00:00
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>
This commit is contained in:
parent
5c5926277e
commit
3e0f4b28d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41421
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user