summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/link/i915.c2
-rw-r--r--src/mainboard/google/stout/i915.c2
2 files changed, 2 insertions, 2 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;
}