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
4778f425
...
4778f425c53181ce5ba2d4f927bd1c15d1e6d134
authored
2005-07-25 22:55:08 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(rfc2047_encode): Bugfix.
1 parent
4defa8ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
mailbox/rfc2047.c
mailbox/rfc2047.c
View file @
4778f42
...
...
@@ -264,13 +264,16 @@ rfc2047_encode (const char *charset, const char *encoding,
*
result
=
malloc
(
2
+
strlen
(
charset
)
+
3
+
strlen
(
text
)
*
3
+
3
);
if
(
*
result
)
{
sprintf
(
*
result
,
"=?%s?%s?"
,
charset
,
encoding
);
char
*
p
=
*
result
;
size_t
s
;
p
+=
sprintf
(
p
,
"=?%s?%s?"
,
charset
,
encoding
);
rc
=
stream_sequential_read
(
output_stream
,
*
result
+
strlen
(
*
result
)
,
strlen
(
text
)
*
3
,
NULL
);
p
,
strlen
(
text
)
*
3
,
&
s
);
strc
at
(
*
result
,
"?="
);
strc
py
(
p
+
s
,
"?="
);
}
else
rc
=
ENOMEM
;
...
...
Please
register
or
sign in
to post a comment