:: commit 9e59649c19cb7917d9af1151494658637d55bd0f

mintsuki <mintsuki@protonmail.com> — 2023-12-13 13:16

parents: 8824f096e3

host/limine: Minor adjustments following 8824f096

diff --git a/host/limine.c b/host/limine.c
index 9ecfff75..17a7187c 100644
--- a/host/limine.c
+++ b/host/limine.c
@@ -1159,11 +1159,11 @@ static void general_usage(void) {
     printf("\n");
     printf("    --print-datadir   Print the directory containing the bootloader files\n");
     printf("\n");
-    printf("    --version         Print Limine version (like `version` command)\n");
+    printf("    --version         Print the Limine version (like the `version` command)\n");
     printf("\n");
     printf("    --help | -h       Display this help message\n");
     printf("\n");
-    printf("Commands: help, version, bios-install, enroll-config\n");
+    printf("Commands: `help`, `version`, `bios-install`, `enroll-config`\n");
     printf("Use `--help` after specifying the command for command-specific help.\n");
 }
 
@@ -1183,7 +1183,7 @@ static int print_datadir(void) {
         if (program_name[i] == '/')
 #endif
         {
-            program_name[i + 1] = 0;
+            program_name[i] = 0;
             puts(program_name);
             return EXIT_SUCCESS;
         }
tab: 248 wrap: offon