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
ebdf8b6e
...
ebdf8b6e88cc30743330cd38021146e5f5cb846b
authored
2003-02-07 14:30:53 +0000
by
Frederic Gobry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed stupid copy/paste bug
1 parent
66b677b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
mailbox/rfc2047.c
mailbox/rfc2047.c
View file @
ebdf8b6
...
...
@@ -409,12 +409,10 @@ base64_next (rfc2047_encoder * enc)
{
if
(
enc
->
dst
)
{
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
src
[
0
]
>>
2
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
src
[
0
]
&
0x3
)
<<
4
)
|
(
enc
->
src
[
1
]
>>
4
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
src
[
1
]
&
0xF
)
<<
2
)
|
(
enc
->
src
[
2
]
>>
6
)];
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
src
[
2
]
&
0x3F
)];
enc
->
src
+=
3
;
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
buffer
[
0
]
>>
2
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
buffer
[
0
]
&
0x3
)
<<
4
)
|
(
enc
->
buffer
[
1
]
>>
4
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
buffer
[
1
]
&
0xF
)
<<
2
)
|
(
enc
->
buffer
[
2
]
>>
6
)];
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
buffer
[
2
]
&
0x3F
)];
}
enc
->
done
+=
4
;
...
...
@@ -435,16 +433,16 @@ base64_flush (rfc2047_encoder * enc)
switch
(
enc
->
state
)
{
case
1
:
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
src
[
0
]
>>
2
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
src
[
0
]
&
0x3
)
<<
4
)];
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
buffer
[
0
]
>>
2
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
buffer
[
0
]
&
0x3
)
<<
4
)];
*
(
enc
->
dst
++
)
=
'='
;
*
(
enc
->
dst
++
)
=
'='
;
break
;
case
2
:
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
src
[
0
]
>>
2
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
src
[
0
]
&
0x3
)
<<
4
)
|
(
enc
->
src
[
1
]
>>
4
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
src
[
1
]
&
0xF
)
<<
2
)];
*
(
enc
->
dst
++
)
=
b64
[(
enc
->
buffer
[
0
]
>>
2
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
buffer
[
0
]
&
0x3
)
<<
4
)
|
(
enc
->
buffer
[
1
]
>>
4
)];
*
(
enc
->
dst
++
)
=
b64
[((
enc
->
buffer
[
1
]
&
0xF
)
<<
2
)];
*
(
enc
->
dst
++
)
=
'='
;
break
;
}
...
...
Please
register
or
sign in
to post a comment