2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>

* video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
	size counting.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-12-23 14:48:55 +01:00
parent 990f35486e
commit 009ec74317
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
* video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
size counting.
2009-12-22 Felix Zielcke <fzielcke@z-51.de>
* util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.

View file

@ -123,7 +123,7 @@ grub_video_gop_get_bitmask (grub_uint32_t mask, unsigned int *mask_size,
if (!(mask & (1 << i)))
break;
*field_pos = i + 1;
*mask_size = last_p - *field_pos;
*mask_size = last_p - *field_pos + 1;
}
static grub_err_t