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
c3f76eee
...
c3f76eee2222a35197acb9bfbd03e272d5a51ad0
authored
2001-05-20 04:10:02 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
A litle oops corrected.
1 parent
890e5a0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
mailbox/address.c
mailbox/address.c
View file @
c3f76ee
...
...
@@ -49,6 +49,8 @@ address_create (address_t *a, const char *s)
save
=
s
;
e
=
&
s
[
strlen
(
s
)];
fb
=
calloc
(
1
,
1
);
if
(
!
fb
)
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. */
...
...
@@ -69,11 +71,11 @@ address_create (address_t *a, const char *s)
fb
[
len
+
(
eol
-
s
)]
=
'\0'
;
s
=
eol
;
s
+=
2
;
if
(
s
==
e
)
break
;
/* no more, so we're done */
s
+=
2
;
/* check if next line is a continuation line */
if
(
*
s
!=
' '
&&
*
s
!=
'\t'
)
break
;
...
...
Please
register
or
sign in
to post a comment