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
42614238
...
42614238e0a5b9b56f37c3107d5f1d653afbc3d4
authored
2000-05-30 06:10:09 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
header.c
overrun corrected
1 parent
d3e3053a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
mailbox/header.c
mailbox/header.c
View file @
4261423
...
...
@@ -26,7 +26,7 @@
#include <stdlib.h>
#include <errno.h>
static
int
header_parse
(
header_t
h
,
const
char
*
blurb
,
size_
t
len
);
static
int
header_parse
(
header_t
h
,
const
char
*
blurb
,
in
t
len
);
static
int
header_read
(
istream_t
is
,
char
*
buf
,
size_t
buflen
,
off_t
off
,
ssize_t
*
pnread
);
static
int
header_write
(
ostream_t
os
,
const
char
*
buf
,
size_t
buflen
,
...
...
@@ -120,7 +120,7 @@ header_destroy (header_t *ph, void *owner)
* on how to handle the case.
*/
static
int
header_parse
(
header_t
header
,
const
char
*
blurb
,
size_
t
len
)
header_parse
(
header_t
header
,
const
char
*
blurb
,
in
t
len
)
{
char
*
header_end
;
char
*
header_start
;
...
...
@@ -153,7 +153,7 @@ header_parse (header_t header, const char *blurb, size_t len)
else
{
len
-=
(
header_end
-
header_start2
+
1
);
if
(
len
==
0
)
if
(
len
<
0
)
{
header_end
=
NULL
;
break
;
...
...
@@ -183,8 +183,8 @@ header_parse (header_t header, const char *blurb, size_t len)
&&
strncmp
(
header_start
,
"From "
,
5
)
==
0
)
{
header
->
hdr
[
header
->
hdr_count
-
1
].
fn
=
header_start
;
header
->
hdr
[
header
->
hdr_count
-
1
].
fn_end
=
header_start
+
6
;
header
->
hdr
[
header
->
hdr_count
-
1
].
fv
=
header_start
+
6
;
header
->
hdr
[
header
->
hdr_count
-
1
].
fn_end
=
header_start
+
4
;
header
->
hdr
[
header
->
hdr_count
-
1
].
fv
=
header_start
+
5
;
header
->
hdr
[
header
->
hdr_count
-
1
].
fv_end
=
header_end
;
}
else
...
...
Please
register
or
sign in
to post a comment