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
180d9a5d
...
180d9a5d7929637e49a3b2079b12b5eecb6be194
authored
2001-05-20 04:34:35 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
buglet fix.
1 parent
c3f76eee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
mailbox/address.c
mailbox/address.c
View file @
180d9a5
...
...
@@ -53,7 +53,8 @@ address_create (address_t *a, const char *s)
return
ENOMEM
;
/* We need to unfold the string. Do the same thing as parse822_field_body()
but we have to be more flexible in allowing bare '\n' as CRLF. */
but we have to be more flexible in allowing bare '\n' as CRLF for
unix-mbox. This is may not be the right approach still. */
for
(;;)
{
const
char
*
eol
=
s
;
...
...
@@ -71,10 +72,13 @@ address_create (address_t *a, const char *s)
fb
[
len
+
(
eol
-
s
)]
=
'\0'
;
s
=
eol
;
if
(
s
==
e
)
if
(
eol
==
e
)
break
;
/* no more, so we're done */
s
+=
2
;
s
++
;
if
(
s
==
e
)
break
;
/* no more, so we're done */
/* check if next line is a continuation line */
if
(
*
s
!=
' '
&&
*
s
!=
'\t'
)
...
...
Please
register
or
sign in
to post a comment