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
7f2b2ef2
...
7f2b2ef2e58660dac58860e2bc4f85fa9ce3be83
authored
2003-08-07 08:52:53 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(FAST_HEADER): Do not remove intermediate newlines from the folded headers.
1 parent
02bc3fa5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
mailbox/mbox/mboxscan.c
mailbox/mbox/mboxscan.c
View file @
7f2b2ef
...
...
@@ -387,7 +387,10 @@ do {\
i = 10 * i + (*a - '0'); \
} while (0)
/* Save/concatenate the field-value in the fast header(fhd) field. */
/* Save/concatenate the field-value in the fast header(fhd) field.
Notice that care is taken to preserve the intermediate newlines
in the folded headers. However, the final newline is always
removed. */
#define FAST_HEADER(field,buf,n) \
do { \
int i = 0; \
...
...
@@ -406,10 +409,11 @@ do { \
if (!field) \
SKIPSPACE(p); \
l = n - (p - buf); \
tmp = realloc (field, (l +
i
+ 1) * sizeof (char)); \
tmp = realloc (field, (l +
(i ? i + 1 : 0)
+ 1) * sizeof (char)); \
if (tmp) \
{ \
field = tmp; \
if (i) field[i++] = '\n'; \
memcpy (field + i, p, l); \
} \
} \
...
...
Please
register
or
sign in
to post a comment