Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
eclipse
paho.mqtt.c
Commits
0ff7e219
Commit
0ff7e219
authored
Apr 10, 2017
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issue #217, void pointer arithmetic
parent
5571f9b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Socket.c
src/Socket.c
+3
-2
No files found.
src/Socket.c
View file @
0ff7e219
/*******************************************************************************
* Copyright (c) 2009, 201
6
IBM Corp.
* Copyright (c) 2009, 201
7
IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
...
...
@@ -14,6 +14,7 @@
* Ian Craggs - initial implementation and documentation
* Ian Craggs - async client updates
* Ian Craggs - fix for bug 484496
* Ian Craggs - issue #217
*******************************************************************************/
/**
...
...
@@ -741,7 +742,7 @@ int Socket_continueWrite(int socket)
add some of the buffer */
size_t
offset
=
pw
->
bytes
-
curbuflen
;
iovecs1
[
++
curbuf
].
iov_len
=
pw
->
iovecs
[
i
].
iov_len
-
(
ULONG
)
offset
;
iovecs1
[
curbuf
].
iov_base
=
pw
->
iovecs
[
i
].
iov_base
+
offset
;
iovecs1
[
curbuf
].
iov_base
=
(
char
*
)
pw
->
iovecs
[
i
].
iov_base
+
offset
;
break
;
}
curbuflen
+=
pw
->
iovecs
[
i
].
iov_len
;
...
...
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