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 +}