diff options
author | Daniel Verkamp <daniel@drv.nu> | 2024-03-11 17:56:40 -0700 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-03-12 10:27:40 -0400 |
commit | 3722c21de19ba64de56495502c0c025b913a9b15 (patch) | |
tree | ff22edad57ae0fb1546dcd535e07338f6aa9cde1 /vgasrc/clext.c | |
parent | 5d87ff2542c1116e07ae74ba84197a0013e08db1 (diff) | |
download | seabios-3722c21de19ba64de56495502c0c025b913a9b15.tar.gz |
vgasrc: round up save/restore size
When calculating the size of the buffer required for the VGA/VBE state,
round up rather than truncating when dividing the number of bytes to get
the number of 64-byte blocks. Without this modification, the save state
function will write past the end of a buffer of the size requested.
Signed-off-by: Daniel Verkamp <daniel@drv.nu>
Diffstat (limited to 'vgasrc/clext.c')
0 files changed, 0 insertions, 0 deletions