Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
2e7d1994
Commit
2e7d1994
authored
Jan 25, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
With -vv, when the file list grows, show a message.
parent
5d2c5c4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
flist.c
flist.c
+16
-3
No files found.
flist.c
View file @
2e7d1994
...
...
@@ -279,13 +279,26 @@ static char *flist_dir;
static
void
flist_expand
(
struct
file_list
*
flist
)
{
if
(
flist
->
count
>=
flist
->
malloced
)
{
size_t
new_bytes
;
void
*
new_ptr
;
if
(
flist
->
malloced
<
1000
)
flist
->
malloced
+=
1000
;
else
flist
->
malloced
*=
2
;
flist
->
files
=
(
struct
file_struct
**
)
realloc
(
flist
->
files
,
sizeof
(
flist
->
files
[
0
])
*
flist
->
malloced
);
new_bytes
=
sizeof
(
flist
->
files
[
0
])
*
flist
->
malloced
;
new_ptr
=
realloc
(
flist
->
files
,
new_bytes
);
if
(
verbose
>
2
)
{
rprintf
(
FINFO
,
RSYNC_NAME
": expand file_list to %.0f bytes, did%s move
\n
"
,
(
double
)
new_bytes
,
(
new_ptr
==
flist
->
files
)
?
" not"
:
""
);
}
flist
->
files
=
(
struct
file_struct
**
)
new_ptr
;
if
(
!
flist
->
files
)
out_of_memory
(
"flist_expand"
);
}
...
...
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