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
0301b334
Commit
0301b334
authored
Jan 02, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Z_INSERT_ONLY support in deflate_stored().
parent
1492b4b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
deflate.c
zlib/deflate.c
+10
-5
No files found.
zlib/deflate.c
View file @
0301b334
...
...
@@ -1092,11 +1092,6 @@ local block_state deflate_stored(s, flush)
max_block_size
=
s
->
pending_buf_size
-
5
;
}
if
(
flush
==
Z_INSERT_ONLY
)
{
s
->
block_start
=
s
->
strstart
;
return
need_more
;
}
/* Copy as much as possible from input to output: */
for
(;;)
{
/* Fill the window as much as possible: */
...
...
@@ -1115,6 +1110,11 @@ local block_state deflate_stored(s, flush)
s
->
strstart
+=
s
->
lookahead
;
s
->
lookahead
=
0
;
if
(
flush
==
Z_INSERT_ONLY
)
{
s
->
block_start
=
s
->
strstart
;
continue
;
}
/* Emit a stored block if pending_buf will be full: */
max_start
=
s
->
block_start
+
max_block_size
;
if
(
s
->
strstart
==
0
||
(
ulg
)
s
->
strstart
>=
max_start
)
{
...
...
@@ -1130,6 +1130,11 @@ local block_state deflate_stored(s, flush)
FLUSH_BLOCK
(
s
,
0
);
}
}
if
(
flush
==
Z_INSERT_ONLY
)
{
s
->
block_start
=
s
->
strstart
;
return
need_more
;
}
FLUSH_BLOCK
(
s
,
flush
==
Z_FINISH
);
return
flush
==
Z_FINISH
?
finish_done
:
block_done
;
}
...
...
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