From 418c6ccc3893fd2bde1ac69d31d4716937f41bae Mon Sep 17 00:00:00 2001 From: Daniel Cook Date: Fri, 8 Jul 2022 17:04:47 -0700 Subject: [PATCH] Fix drive-win.c typo --- src/drive-win.c | 8 ++++---- src/model.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/drive-win.c b/src/drive-win.c index 4cf3a53..1fc2f44 100644 --- a/src/drive-win.c +++ b/src/drive-win.c @@ -70,7 +70,7 @@ void flag_write(long offset, char string[]) return; } - if (flag_getfs() == EXFAT) { + if (drive_getfs() == EXFAT) { printf("Card is ExFAT, writing flags in the backup VBR.\n"); printf("Writing \"%s\" at 0x%lx\n", string, offset + (512 * 12)); @@ -113,12 +113,12 @@ int drive_get() int drive_get_usable(char buffer[], int n) { - int drive = flag_getdrive(); + int drive = drive_get(); if (drive < 0) { return drive; } - strncpy(buffer, " :", int n); + strncpy(buffer, " :", n); buffer[0] = (char)drive; return 0; } @@ -127,7 +127,7 @@ int drive_openfs(int mode) { // Windows filesystems must be opened like this: \\.\E: char buffer[64] = "\\\\.\\0:"; - int drive = flag_getdrive(); + int drive = drive_get(); if (drive == DRIVE_NONE) { return DRIVE_NONE; } diff --git a/src/model.c b/src/model.c index a9bc4e4..b352eca 100644 --- a/src/model.c +++ b/src/model.c @@ -52,7 +52,7 @@ int model_get(char name[]) // Use strstr to find whether "models[m].alts[a]" is // inside of "name". Basically String.includes(...) - if ((long)strstr(name, models[m].alts[a])) { + if (strstr(name, models[m].alts[a])) { return m; } }