Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
R3ABM Artem
DigestPlay
Commits
e5b2c3be
Commit
e5b2c3be
authored
May 26, 2017
by
Artem Prilutskiy
Browse files
..
parent
d3bc0203
Changes
1
Hide whitespace changes
Inline
Side-by-side
DigestPlay.c
View file @
e5b2c3be
...
...
@@ -139,10 +139,9 @@ int main(int argc, char* argv[])
// Check input data format
char
*
buffer
=
(
char
*
)
alloca
(
BUFFER_SIZE
);
ssize_t
length
=
read
(
STDIN_FILENO
,
buffer
,
DSD_MAGIC_SIZE
);
if
((
length
!=
DSD_MAGIC_SIZE
)
||
(
memcmp
(
buffer
,
DSD_MAGIC_TEXT
,
length
)
!=
0
))
if
((
read
(
STDIN_FILENO
,
buffer
,
DSD_MAGIC_SIZE
)
!=
DSD_MAGIC_SIZE
)
||
(
memcmp
(
buffer
,
DSD_MAGIC_TEXT
,
DSD_MAGIC_SIZE
)
!=
0
))
{
printf
(
"Error checking input data format
\n
"
);
ReleaseRewindContext
(
context
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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