aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kernel/efi.c')
-rw-r--r--arch/ia64/kernel/efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
index c485a3b32ba8..d51c2f214875 100644
--- a/arch/ia64/kernel/efi.c
+++ b/arch/ia64/kernel/efi.c
@@ -458,7 +458,7 @@ efi_init (void)
458 /* Show what we know for posterity */ 458 /* Show what we know for posterity */
459 c16 = __va(efi.systab->fw_vendor); 459 c16 = __va(efi.systab->fw_vendor);
460 if (c16) { 460 if (c16) {
461 for (i = 0;i < (int) sizeof(vendor) && *c16; ++i) 461 for (i = 0;i < (int) sizeof(vendor) - 1 && *c16; ++i)
462 vendor[i] = *c16++; 462 vendor[i] = *c16++;
463 vendor[i] = '\0'; 463 vendor[i] = '\0';
464 } 464 }