]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Use strcpy8/16
authorJan Janssen <medhefgo@web.de>
Tue, 24 May 2022 08:16:34 +0000 (10:16 +0200)
committerJan Janssen <medhefgo@web.de>
Tue, 31 May 2022 13:10:48 +0000 (15:10 +0200)
src/boot/efi/boot.c

index adac70d0f04c513f5c6a2ced9584d63d317e7232..813e92d6751f6edd06f07c467aec575c3d9c3202 100644 (file)
@@ -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);