From 08ed842b56e17b538c18dad3381214651e0786d5 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Tue, 24 May 2022 10:16:34 +0200 Subject: [PATCH] boot: Use strcpy8/16 --- src/boot/efi/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index adac70d0f0..813e92d675 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -153,7 +153,7 @@ static BOOLEAN line_edit( size = len + 1024; line = xnew(CHAR16, size); print = xnew(CHAR16, x_max + 1); - StrCpy(line, strempty(*line_in)); + strcpy16(line, strempty(*line_in)); for (;;) { EFI_STATUS err; @@ -1399,7 +1399,7 @@ static void config_entry_bump_counters(ConfigEntry *entry, EFI_FILE *root_dir) { return; /* And rename the file */ - StrCpy(file_info->FileName, entry->next_name); + strcpy16(file_info->FileName, entry->next_name); err = handle->SetInfo(handle, &GenericFileInfo, file_info_size, file_info); if (EFI_ERROR(err)) { log_error_stall(L"Failed to rename '%s' to '%s', ignoring: %r", old_path, entry->next_name, err); -- 2.25.1