Commit 931413fd authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix incorrect passing of file mode.

parent bc2bb57b
......@@ -596,12 +596,12 @@ static int streamOpenA(const char *filename, const char *filemode, int filetype)
if ( ! filename || ! filemode || filetype < 0 ) return (CDI_EINVAL);
{
int (*streamOpenDelegate)(const char *filename, const char *filemode,
int (*streamOpenDelegate)(const char *filename, char filemode,
int filetype, stream_t *streamptr, int recordBufIsToBeCreated)
= (int (*)(const char *, const char *, int, stream_t *, int))
namespaceSwitchGet(NSSWITCH_STREAM_OPEN_BACKEND).func;
fileID = streamOpenDelegate(filename, "r", filetype, streamptr, 1);
fileID = streamOpenDelegate(filename, 'r', filetype, streamptr, 1);
}
if ( fileID == CDI_UNDEFID || fileID == CDI_ELIBNAVAIL || fileID == CDI_ESYSTEM ) return (fileID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment