From: Jan Janssen Date: Tue, 24 May 2022 08:16:34 +0000 (+0200) Subject: boot: Use strcpy8/16 X-Git-Tag: v252-rc1~892^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08ed842b56e17b538c18dad3381214651e0786d5;p=thirdparty%2Fsystemd.git boot: Use strcpy8/16 --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index adac70d0f04..813e92d6751 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);