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
505456c1
...
505456c119bc44674ea4982b61a16e80d8559319
authored
2001-09-20 07:51:11 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mh_read_formfile(): Handle end-of-line comments and '\' line continuation.
1 parent
2476e22e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
mh/mh_init.c
mh/mh_init.c
View file @
505456c
...
...
@@ -144,10 +144,22 @@ mh_read_formfile (char *name, char **pformat)
int
len
=
strlen
(
ptr
);
if
(
len
==
0
)
break
;
if
(
*
ptr
==
'%'
&&
ptr
[
1
]
==
';'
)
continue
;
if
(
len
>
0
&&
ptr
[
len
-
1
]
==
'\n'
)
ptr
[
--
len
]
=
0
;
{
if
(
ptr
[
len
-
2
]
==
'\\'
)
{
len
-=
2
;
ptr
[
len
]
=
0
;
}
}
off
+=
len
;
}
if
(
off
>
0
&&
format_str
[
off
-
1
]
==
'\n'
)
off
--
;
format_str
[
off
]
=
0
;
fclose
(
fp
);
*
pformat
=
format_str
;
...
...
Please
register
or
sign in
to post a comment