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
8d5c88ac
Commit
8d5c88ac
authored
Aug 12, 2008
by
Zach C
Committed by
Matt Colyer
Aug 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed seeking, also connections are no longer added twice.
Signed-off-by:
Matt Colyer
<
matt@colyer.name
>
parent
2448b82a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
main.c
src/main.c
+1
-1
usbmux.c
src/usbmux.c
+0
-1
No files found.
src/main.c
View file @
8d5c88ac
...
@@ -124,7 +124,7 @@ int main(int argc, char *argv[]) {
...
@@ -124,7 +124,7 @@ int main(int argc, char *argv[]) {
printf
(
"Seek & read
\n
"
);
printf
(
"Seek & read
\n
"
);
my_file
=
afc_open_file
(
afc
,
"/readme.libiphone.fx"
,
AFC_FILE_READ
);
my_file
=
afc_open_file
(
afc
,
"/readme.libiphone.fx"
,
AFC_FILE_READ
);
bytes
=
afc_seek_file
(
afc
,
my_file
,
5
);
bytes
=
afc_seek_file
(
afc
,
my_file
,
5
);
if
(
!
bytes
)
printf
(
"WARN: SEEK DID NOT WORK
\n
"
);
if
(
bytes
)
printf
(
"WARN: SEEK DID NOT WORK
\n
"
);
char
*
threeletterword
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
5
);
char
*
threeletterword
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
5
);
bytes
=
afc_read_file
(
afc
,
my_file
,
threeletterword
,
3
);
bytes
=
afc_read_file
(
afc
,
my_file
,
threeletterword
,
3
);
threeletterword
[
3
]
=
'\0'
;
threeletterword
[
3
]
=
'\0'
;
...
...
src/usbmux.c
View file @
8d5c88ac
...
@@ -129,7 +129,6 @@ usbmux_connection *mux_connect(iPhone *phone, uint16 s_port, uint16 d_port) {
...
@@ -129,7 +129,6 @@ usbmux_connection *mux_connect(iPhone *phone, uint16 s_port, uint16 d_port) {
new_connection
->
header
->
tcp_flags
=
0x10
;
new_connection
->
header
->
tcp_flags
=
0x10
;
new_connection
->
header
->
scnt
=
1
;
new_connection
->
header
->
scnt
=
1
;
new_connection
->
header
->
ocnt
=
1
;
new_connection
->
header
->
ocnt
=
1
;
add_connection
(
new_connection
);
new_connection
->
phone
=
phone
;
new_connection
->
phone
=
phone
;
new_connection
->
recv_buffer
=
NULL
;
new_connection
->
recv_buffer
=
NULL
;
new_connection
->
r_len
=
0
;
new_connection
->
r_len
=
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