diff options
Diffstat (limited to 'src/mainboard/prodrive/hermes')
-rw-r--r-- | src/mainboard/prodrive/hermes/mainboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/prodrive/hermes/mainboard.c b/src/mainboard/prodrive/hermes/mainboard.c index 3173522a77..b0bf0dd986 100644 --- a/src/mainboard/prodrive/hermes/mainboard.c +++ b/src/mainboard/prodrive/hermes/mainboard.c @@ -111,7 +111,7 @@ static void update_board_layout(void) continue; layout.cpu_count++; if (!layout.cpu_name[0]) - strcpy(layout.cpu_name, cpu->name); + strncpy(layout.cpu_name, cpu->name, sizeof(layout.cpu_name)); } if (cpuid_get_max_func() >= 0x16) |