Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c894e162
...
c894e1628a47a221e56b306f68015a876c964600
authored
2003-03-19 12:53:00 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(base64_encode): Bugfix.
1 parent
1588186a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mailbox/filter_trans.c
mailbox/filter_trans.c
View file @
c894e16
...
...
@@ -335,9 +335,9 @@ base64_encode (const char *iptr, size_t isize, char *optr, size_t osize,
}
*
optr
++
=
b64
[
ptr
[
0
]
>>
2
];
*
optr
++
=
b64
[((
ptr
[
0
]
<<
4
)
+
(
--
isize
?
(
ptr
[
1
]
>>
4
)
:
0
))
&
0x3f
];
*
optr
++
=
isize
?
b64
[((
i
ptr
[
1
]
<<
2
)
+
(
--
isize
?
(
ptr
[
2
]
>>
6
)
:
0
))
&
0x3f
]
:
'='
;
*
optr
++
=
isize
?
b64
[((
ptr
[
1
]
<<
2
)
+
(
--
isize
?
(
ptr
[
2
]
>>
6
)
:
0
))
&
0x3f
]
:
'='
;
*
optr
++
=
isize
?
b64
[
ptr
[
2
]
&
0x3f
]
:
'='
;
i
ptr
+=
3
;
ptr
+=
3
;
consumed
+=
3
;
(
*
nbytes
)
+=
4
;
(
*
line_len
)
+=
4
;
...
...
Please
register
or
sign in
to post a comment