commit | 3722c21de19ba64de56495502c0c025b913a9b15 | [log] [tgz] |
---|---|---|
author | Daniel Verkamp <daniel@drv.nu> | Mon Mar 11 17:56:40 2024 -0700 |
committer | Kevin O'Connor <kevin@koconnor.net> | Tue Mar 12 10:27:40 2024 -0400 |
tree | ff22edad57ae0fb1546dcd535e07338f6aa9cde1 | |
parent | 5d87ff2542c1116e07ae74ba84197a0013e08db1 [diff] |
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>