Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
lvzhengyang
git2
Commits
0e26202c
Commit
0e26202c
authored
Aug 01, 2012
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix missing validation and type cast warning
parent
ca1b6e54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/fileops.c
+4
-1
No files found.
src/fileops.c
View file @
0e26202c
...
...
@@ -264,6 +264,8 @@ int git_futils_mkdir(
/* clip root to make_path length */
if
(
root
>=
(
ssize_t
)
make_path
.
size
)
root
=
(
ssize_t
)
make_path
.
size
-
1
;
if
(
root
<
0
)
root
=
0
;
tail
=
&
make_path
.
ptr
[
root
];
...
...
@@ -666,7 +668,8 @@ static int _cp_r_callback(void *ref, git_buf *from)
/* make symlink or regular file */
if
(
S_ISLNK
(
from_st
.
st_mode
))
return
git_futils_cplink
(
from
->
ptr
,
from_st
.
st_size
,
info
->
to
.
ptr
);
return
git_futils_cplink
(
from
->
ptr
,
(
size_t
)
from_st
.
st_size
,
info
->
to
.
ptr
);
else
return
git_futils_cp_withpath
(
from
->
ptr
,
info
->
to
.
ptr
,
from_st
.
st_mode
,
info
->
dirmode
);
...
...
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