mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 22:59:38 +03:00
undo: always initialize the 'newsize' element in the undo struct
So that do_redo() cannot set the file size to a "random" value. This fixes https://savannah.gnu.org/bugs/?54478.
This commit is contained in:
parent
e40e6bbf10
commit
fd65f74428
@ -1313,6 +1313,7 @@ void add_undo(undo_type action)
|
||||
u->mark_begin_lineno = openfile->current->lineno;
|
||||
u->mark_begin_x = openfile->current_x;
|
||||
u->wassize = openfile->totsize;
|
||||
u->newsize = openfile->totsize;
|
||||
u->xflags = 0;
|
||||
u->grouping = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user