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:
eadler 2015-04-18 23:56:04 +00:00
parent 5ae6ee36a9
commit 57ac9a58de

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();