Skip to content

Commit

Permalink
Fix drive-win.c typo
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Jul 9, 2022
1 parent 1ea06a1 commit 418c6cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/drive-win.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/model.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 418c6cc

Please sign in to comment.