summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/link/i915.c2
-rw-r--r--src/mainboard/google/stout/i915.c2
-rw-r--r--src/mainboard/intel/wtm2/i915.c2
-rw-r--r--src/mainboard/lenovo/x60/i915.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/google/link/i915.c b/src/mainboard/google/link/i915.c
index 64812349ed..a38760b1a5 100644
--- a/src/mainboard/google/link/i915.c
+++ b/src/mainboard/google/link/i915.c
@@ -78,7 +78,7 @@ const u32 link_edid_data[] = {
static char *regname(unsigned long addr)
{
static char name[16];
- sprintf(name, "0x%lx", addr);
+ snprintf(name, sizeof (name), "0x%lx", addr);
return name;
}
diff --git a/src/mainboard/google/stout/i915.c b/src/mainboard/google/stout/i915.c
index 89a8594e54..8085de6554 100644
--- a/src/mainboard/google/stout/i915.c
+++ b/src/mainboard/google/stout/i915.c
@@ -88,7 +88,7 @@ setgtt(int start, int end, unsigned long base, int inc)
static char *regname(unsigned long addr)
{
static char name[16];
- sprintf(name, "0x%lx", addr);
+ snprintf(name, sizeof (name), "0x%lx", addr);
return name;
}
diff --git a/src/mainboard/intel/wtm2/i915.c b/src/mainboard/intel/wtm2/i915.c
index df8813888f..b664c35ebf 100644
--- a/src/mainboard/intel/wtm2/i915.c
+++ b/src/mainboard/intel/wtm2/i915.c
@@ -88,7 +88,7 @@ static int ioread = 0, iowrite = 0;
static char *regname(unsigned long addr)
{
static char name[16];
- sprintf(name, "0x%lx", addr);
+ snprintf(name, sizeof (name), "0x%lx", addr);
return name;
}
diff --git a/src/mainboard/lenovo/x60/i915.c b/src/mainboard/lenovo/x60/i915.c
index 0d3267296e..ea01ef1380 100644
--- a/src/mainboard/lenovo/x60/i915.c
+++ b/src/mainboard/lenovo/x60/i915.c
@@ -80,7 +80,7 @@ const u32 x60_edid_data[] = {
static char *regname(unsigned long addr)
{
static char name[16];
- sprintf(name, "0x%lx", addr);
+ snprintf(name, sizeof (name), "0x%lx", addr);
return name;
}