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
844eb643
Commit
844eb643
authored
Sep 25, 2000
by
Dave Love
Browse files
(base64_encode_1): Fix last change.
parent
2e636f9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
src/ChangeLog
src/ChangeLog
+4
-0
src/fns.c
src/fns.c
+9
-5
No files found.
src/ChangeLog
View file @
844eb643
2000-09-24 Dave Love <fx@gnu.org>
* fns.c (base64_encode_1): Fix last change.
2000-09-22 Gerd Moellmann <gerd@gnu.org>
* dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
...
...
src/fns.c
View file @
844eb643
...
...
@@ -3377,7 +3377,7 @@ base64_encode_1 (from, to, length, line_break, multibyte)
{
int
counter
=
0
,
i
=
0
;
char
*
e
=
to
;
unsigned char
c;
int
c
;
unsigned
int
value
;
int
bytes
;
...
...
@@ -3386,9 +3386,9 @@ base64_encode_1 (from, to, length, line_break, multibyte)
if
(
multibyte
)
{
c
=
STRING_CHAR_AND_LENGTH
(
from
+
i
,
length
-
i
,
bytes
);
if (
!SINGLE_BYTE_CHAR_P (c)
)
if
(
bytes
>
1
)
return
-
1
;
i
+= bytes
;
i
++
;
}
else
c
=
from
[
i
++
];
...
...
@@ -3424,7 +3424,9 @@ base64_encode_1 (from, to, length, line_break, multibyte)
if
(
multibyte
)
{
c
=
STRING_CHAR_AND_LENGTH
(
from
+
i
,
length
-
i
,
bytes
);
i += bytes;
if
(
bytes
>
1
)
return
-
1
;
i
++
;
}
else
c
=
from
[
i
++
];
...
...
@@ -3444,7 +3446,9 @@ base64_encode_1 (from, to, length, line_break, multibyte)
if
(
multibyte
)
{
c
=
STRING_CHAR_AND_LENGTH
(
from
+
i
,
length
-
i
,
bytes
);
i += bytes;
if
(
bytes
>
1
)
return
-
1
;
i
++
;
}
else
c
=
from
[
i
++
];
...
...
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