accelerants/matrox: Fix -Wformat-security
Change-Id: Ib9fa1361dc364ca9b4e0da676b67ed3b695259da Reviewed-on: https://review.haiku-os.org/c/haiku/+/3332 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
7f83301d7c
commit
4b15c3739b
@ -15,9 +15,9 @@ status_t GET_ACCELERANT_DEVICE_INFO(accelerant_device_info * adi)
|
||||
/* no info on version is provided, so presumably this is for my info */
|
||||
adi->version = 1;
|
||||
|
||||
sprintf(adi->name, si->adi.name);
|
||||
sprintf(adi->chipset, si->adi.chipset);
|
||||
sprintf(adi->serial_no, "unknown");
|
||||
strcpy(adi->name, si->adi.name);
|
||||
strcpy(adi->chipset, si->adi.chipset);
|
||||
strcpy(adi->serial_no, "unknown");
|
||||
adi->memory = (si->ps.memory_size * 1024 * 1024);
|
||||
adi->dac_speed = si->ps.max_dac1_clock;
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
#define GLOBALDATA_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "DriverInterface.h"
|
||||
#include "mga_globals.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user