Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
78a629d2
Commit
78a629d2
authored
Aug 23, 2000
by
Kenichi Handa
Browse files
(encode_eol): Fix bug for the case of dst_bytes being zero. Set
coding->produced_char correctly.
parent
f5a36960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/coding.c
src/coding.c
+2
-1
No files found.
src/coding.c
View file @
78a629d2
...
...
@@ -2802,7 +2802,7 @@ encode_eol (coding, source, destination, src_bytes, dst_bytes)
}
else
{
if (src_bytes <= dst_bytes)
if
(
!
dst_bytes
||
src_bytes
<=
dst_bytes
)
{
safe_bcopy
(
src
,
dst
,
src_bytes
);
src_base
=
src_end
;
...
...
@@ -2834,6 +2834,7 @@ encode_eol (coding, source, destination, src_bytes, dst_bytes)
coding
->
consumed
=
src_base
-
source
;
coding
->
produced
=
dst
-
destination
;
coding
->
produced_char
=
coding
->
produced
;
}
...
...
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