:: commit f527896a2bb3b942dc28c71a0720effd67514aac

mintsuki <mintsuki@protonmail.com> — 2021-01-03 18:39

parents: 996f2d60bf

limine-install: Fix argument order for strstr() call

diff --git a/limine-install.c b/limine-install.c
index 9e5af009..6de1a9a2 100644
--- a/limine-install.c
+++ b/limine-install.c
@@ -273,7 +273,7 @@ int main(int argc, char *argv[]) {
         goto cleanup;
     }
 
-    if (argc > 1 && strstr("limine.bin", argv[1]) != NULL) {
+    if (argc > 1 && strstr(argv[1], "limine.bin") != NULL) {
         fprintf(stderr,
             "WARNING: Passing the bootloader binary as a file argument is\n"
             "         deprecated and should be avoided in the future.\n");
tab: 248 wrap: offon