Commit c0efd87f authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix incorrectly implemented check for filetype validity.

parent 4fcc167b
......@@ -196,8 +196,8 @@ readFuncCall(struct funcCallDesc *header)
+ header->funcArgs.newFile.offset);
xassert(filename[filenamesz] == '\0');
int filetype = header->funcArgs.newFile.filetype;
xassert ( filetype >= MINFILETYPE && filetype <= MAXFILETYPE );
int streamID = streamOpenWrite(filename, filetype);
xassert(streamID != CDI_ELIBNAVAIL);
xdebug("READ FUNCTION CALL FROM WIN: %s, filenamesz=%zu,"
" filename=%s, filetype=%d, OPENED STREAM %d",
funcMap[(-1 - funcID)], filenamesz, filename,
......
......@@ -17,9 +17,6 @@
#define MAXDEBUG 3
#define MINFILETYPE 1
#define MAXFILETYPE 9
#define ddebug 1
#define debugString "#####"
......
Supports Markdown
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