Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
pwn
libplist
Commits
9e745d18
Commit
9e745d18
authored
Jul 31, 2008
by
Zach C
Committed by
Matt Colyer
Jul 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a slight bug if datalen == bytes in usbmux.c
parent
1f81e7f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
usbmux.c
src/usbmux.c
+2
-1
No files found.
src/usbmux.c
View file @
9e745d18
...
...
@@ -187,7 +187,8 @@ int mux_recv(iPhone *phone, usbmux_tcp_header *connection, char *data, uint32 da
}
else
{
// all's good, they didn't do anything bonky.
my_datalen
=
ntohl
(
buffer
[
4
])
-
28
;
connection
->
ocnt
+=
my_datalen
;
memcpy
(
data
,
buffer
+
28
,
datalen
);
if
(
bytes
==
(
datalen
+
28
))
memcpy
(
data
,
buffer
+
28
,
datalen
);
else
if
(
bytes
==
datalen
)
memcpy
(
data
,
buffer
+
28
,
datalen
-
28
);
free
(
buffer
);
if
(
debug
)
printf
(
"mux_recv: bytes received: %i
\n
"
,
bytes
-
28
);
return
bytes
-
28
;
...
...
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