Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
622ec0f0
Commit
622ec0f0
authored
Mar 15, 2018
by
deuce
Browse files
Fix ret/copied confusion in last commit.
parent
1ca116da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/sbbs3/js_socket.c
src/sbbs3/js_socket.c
+4
-4
No files found.
src/sbbs3/js_socket.c
View file @
622ec0f0
...
...
@@ -190,13 +190,13 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i
return
total
;
return
ret
;
}
if
(
!
(
flags
&
MSG_WAITALL
)
||
p
->
nonblocking
)
if
(
(
!
(
flags
&
MSG_WAITALL
)
)
||
p
->
nonblocking
)
return
ret
;
total
+=
copied
;
total
+=
ret
;
if
(
total
>=
(
ptrdiff_t
)
len
)
return
total
;
len
-=
copied
;
buf
=
((
uint8_t
*
)
buf
)
+
copied
;
len
-=
ret
;
buf
=
((
uint8_t
*
)
buf
)
+
ret
;
if
(
!
socket_check
(
p
->
sock
,
NULL
,
NULL
,
0
))
{
if
(
total
>
0
)
...
...
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