Same fix as one in wut devoptab
This commit is contained in:
SuperDude88 2022-07-29 21:50:06 -04:00 committed by GitHub
parent cd0f3d1281
commit 27b5f01b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,7 @@ int __fsa_open(struct _reent *r,
file = (__fsa_file_t *) fileStruct;
file->fd = fd;
file->flags = (flags & (O_ACCMODE | O_APPEND | O_SYNC));
file->offset = 0;
strncpy(file->path, fixedPath, FS_MAX_PATH);
free(fixedPath);
@ -84,4 +85,4 @@ int __fsa_open(struct _reent *r,
}
}
return 0;
}
}