Skip to content

Commit 1ba5a21

Browse files
author
Ian
committed
Update
1 parent 361779e commit 1ba5a21

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
BareMetal OS -- License
33
===============================================================================
44

5-
Copyright (C) 2008-2020 Return Infinity -- http://www.returninfinity.com
5+
Copyright (C) 2008-2023 Return Infinity -- http://www.returninfinity.com
66

77
All rights reserved.
88

clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
rm -rf bin/

src/bmfs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* BareMetal File System Utility */
22
/* Written by Ian Seyler of Return Infinity */
3-
/* v1.3 (2023 10 29) */
3+
/* v1.3 (2023 10 30) */
44

55
/* Global includes */
66
#include <stdio.h>
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
6868
/* Parse arguments */
6969
if (argc == 1) // No arguments provided
7070
{
71-
printf("BareMetal File System Utility v1.3 (2023 10 29)\n");
71+
printf("BareMetal File System Utility v1.3 (2023 10 30)\n");
7272
printf("Written by Ian Seyler @ Return Infinity ([email protected])\n\n");
7373
printf("Usage: bmfs disk function file\n\n");
7474
printf("Disk: the name of the disk file\n");
@@ -866,8 +866,8 @@ void bmfs_write(char *filename)
866866
// Update directory
867867
tempfilesize = ftell(tfile);
868868
memcpy(Directory+(slot*64)+48, &tempfilesize, 8);
869-
fseek(disk, 4096, SEEK_SET); // Seek 4KiB in for directory
870-
fwrite(Directory, 4096, 1, disk); // Write new directory to disk
869+
fseek(disk, 4096, SEEK_SET); // Seek 4KiB in for directory
870+
fwrite(Directory, 4096, 1, disk); // Write new directory to disk
871871
}
872872
fclose(tfile);
873873
}

0 commit comments

Comments
 (0)