Minor stuff

This commit is contained in:
Aurora
2016-12-11 20:10:51 +01:00
parent 2f274e2f47
commit f89845257e
4 changed files with 14 additions and 19 deletions

View File

@@ -50,7 +50,7 @@ diff -uNr a/source/brahma.c b/source/brahma.c
+ fseek(p , 0, SEEK_END);
+ psize = ftell(p);
+ if (psize > 5 && psize < 58) {
+ char path[58];
+ char path[57];
+
+ fseek(p, 0, SEEK_SET);
+ u32 bytes_read = fread(path, 1, psize, p);

View File

@@ -43,7 +43,7 @@ void main(void)
if(pathSize > 5 && pathSize < 58)
{
char path[58];
char path[57];
unsigned int read;
f_read(&pathFile, path, pathSize, &read);
if(path[pathSize - 1] == 0xA) pathSize--;