From 07af166d2fe7ffb3994a64eacee14d674dbe6874 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Tue, 26 Sep 2023 04:51:59 -0400 Subject: [PATCH 1/2] Fix a build error on haiku in ini.c --- src/ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ini.c b/src/ini.c index 604c3d5eb..35c7504eb 100644 --- a/src/ini.c +++ b/src/ini.c @@ -348,7 +348,7 @@ ini_read(const char *fn) while (1) { memset(buff, 0x00, sizeof(buff)); #ifdef __HAIKU__ - ini_fgetws(buff, sizeof_w(buff), f); + ini_fgetws(buff, sizeof_w(buff), fp); #else (void) !fgetws(buff, sizeof_w(buff), fp); #endif From 9b9dc6cdccc439a61bbca1fc9864d5519d91d829 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Tue, 26 Sep 2023 05:00:30 -0400 Subject: [PATCH 2/2] Removed escaped whitespace at end of line. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index ea314997a..f0b48dc1a 100644 --- a/src/config.c +++ b/src/config.c @@ -1805,7 +1805,7 @@ load_other_removable_devices(void) if (p[0] != 0x00) { if (path_abs(p)) { if (strlen(p) > 511) - fatal("load_other_removable_devices(): strlen(p) > 511 (mo_drives[%i].image_path)\n", + fatal("load_other_removable_devices(): strlen(p) > 511 (mo_drives[%i].image_path)\n", c); else strncpy(mo_drives[c].image_path, p, 511);