Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c0efd87f
Commit
c0efd87f
authored
Jun 13, 2013
by
Thomas Jahns
🤸
Browse files
Fix incorrectly implemented check for filetype validity.
parent
4fcc167b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pio_server.c
View file @
c0efd87f
...
...
@@ -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
,
...
...
src/pio_util.h
View file @
c0efd87f
...
...
@@ -17,9 +17,6 @@
#define MAXDEBUG 3
#define MINFILETYPE 1
#define MAXFILETYPE 9
#define ddebug 1
#define debugString "#####"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment