[rtems commit] bsp/i386: Fix warning
Sebastian Huber
sebh at rtems.org
Fri Jul 28 11:28:34 UTC 2017
Module: rtems
Branch: master
Commit: 0684f3592b41c77aa68575dfb18be1ce7a87f101
Changeset: http://git.rtems.org/rtems/commit/?id=0684f3592b41c77aa68575dfb18be1ce7a87f101
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jul 28 13:10:19 2017 +0200
bsp/i386: Fix warning
---
c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c b/c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c
index fa3f00c..1c42956 100644
--- a/c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c
+++ b/c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c
@@ -114,10 +114,10 @@ uint32_t VBE_controller_information( VBE_vbe_info_block *info_block,
/* indicate to graphic's bios that VBE2.0 extended information is desired */
if (queried_VBE_Version >= 0x200)
{
- strncpy(
- (char *)&VBE_buffer->VbeSignature,
+ memcpy(
+ &VBE_buffer->VbeSignature,
VBE20plus_SIGNATURE,
- 4*sizeof(size_t)
+ sizeof(VBE_buffer->VbeSignature)
);
}
if (i386_real_interrupt_call(INTERRUPT_NO_VIDEO_SERVICES, &parret) == 0)
More information about the vc
mailing list