Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
erlang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
erlang
Commits
e5533b75
Unverified
Commit
e5533b75
authored
Jun 29, 2018
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in mtp_intermediate
parent
9403f11e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mtp_intermediate.erl
src/mtp_intermediate.erl
+1
-1
No files found.
src/mtp_intermediate.erl
View file @
e5533b75
...
...
@@ -33,7 +33,7 @@ new(Opts) ->
-
spec
try_decode_packet
(
binary
(),
codec
())
->
{
ok
,
binary
(),
codec
()}
|
{
incomplete
,
codec
()}.
try_decode_packet
(
<<
Len
:
32
/
unsigned
-
little
,
_
/
binary
>>
=
Data
,
#int_st
{
buffer
=
<<>>
}
=
St
)
when
Len
<
?
MAX_SIZE
->
#int_st
{
buffer
=
<<>>
}
=
St
)
->
Len1
=
case
Len
<
?
MAX_SIZE
of
true
->
Len
;
false
->
Len
-
?
MAX_SIZE
...
...
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