bin/ed: use correct type in multiplication

The result is line_t** so the multiplication should be size *
	sizeof(line_t*)

MFC After:	1 month
This commit is contained in:
Eitan Adler 2015-04-18 23:56:04 +00:00
parent a59f817491
commit e6743d31d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281719

View File

@ -153,7 +153,7 @@ set_active_node(line_t *lp)
if (active_list != NULL) {
#endif
if ((ts = (line_t **) realloc(active_list,
(ti += MINBUFSZ) * sizeof(line_t **))) == NULL) {
(ti += MINBUFSZ) * sizeof(line_t *))) == NULL) {
fprintf(stderr, "%s\n", strerror(errno));
errmsg = "out of memory";
SPL0();