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