diff options
-rw-r--r-- | lib/rfsv16.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rfsv16.cc b/lib/rfsv16.cc index 6ded8b1..9577658 100644 --- a/lib/rfsv16.cc +++ b/lib/rfsv16.cc @@ -55,7 +55,8 @@ fopen(u_int32_t attr, const char *name, u_int32_t &handle) bufferStore a; string realName = convertSlash(name); - a.addWord(attr & 0xFFFF); + // Allow random access, rather than forcing the caller to ask for it + a.addWord((P_FRANDOM | attr) & 0xFFFF); a.addStringT(realName.c_str()); if (!sendCommand(FOPEN, a)) return E_PSI_FILE_DISC; |