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:
parent
5ae6ee36a9
commit
57ac9a58de
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user