From 27b5f01b199b7dd59cfaae6a8e0294e7ccc43e14 Mon Sep 17 00:00:00 2001 From: SuperDude88 <82904174+SuperDude88@users.noreply.github.com> Date: Fri, 29 Jul 2022 21:50:06 -0400 Subject: [PATCH] Test fix Same fix as one in wut devoptab --- source/devoptab/devoptab_fsa_open.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/devoptab/devoptab_fsa_open.cpp b/source/devoptab/devoptab_fsa_open.cpp index c348587..eee9881 100644 --- a/source/devoptab/devoptab_fsa_open.cpp +++ b/source/devoptab/devoptab_fsa_open.cpp @@ -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; -} \ No newline at end of file +}