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
a59f817491
commit
e6743d31d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281719
@ -153,7 +153,7 @@ set_active_node(line_t *lp)
|
|||||||
if (active_list != NULL) {
|
if (active_list != NULL) {
|
||||||
#endif
|
#endif
|
||||||
if ((ts = (line_t **) realloc(active_list,
|
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));
|
fprintf(stderr, "%s\n", strerror(errno));
|
||||||
errmsg = "out of memory";
|
errmsg = "out of memory";
|
||||||
SPL0();
|
SPL0();
|
||||||
|
Loading…
Reference in New Issue
Block a user