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
f281e24c
Commit
f281e24c
authored
Aug 13, 2008
by
Matt Colyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix renaming files, it was missing the second NULL character.
parent
5564ba70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
AFC.c
src/AFC.c
+1
-1
No files found.
src/AFC.c
View file @
f281e24c
...
...
@@ -446,7 +446,7 @@ int afc_rename_file(AFClient *client, const char *from, const char *to) {
// Send command
memcpy
(
send
,
from
,
strlen
(
from
)
+
1
);
memcpy
(
send
+
strlen
(
from
)
+
1
,
to
,
strlen
(
to
));
memcpy
(
send
+
strlen
(
from
)
+
1
,
to
,
strlen
(
to
)
+
1
);
client
->
afc_packet
->
entire_length
=
client
->
afc_packet
->
this_length
=
0
;
client
->
afc_packet
->
operation
=
AFC_RENAME
;
bytes
=
dispatch_AFC_packet
(
client
,
send
,
strlen
(
to
)
+
strlen
(
from
)
+
2
);
...
...
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