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
d76cc0ea
...
d76cc0eac86b16877d42861069bb2ee0fd23c33b
authored
2006-05-21 21:55:30 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_header_set_value): Fix length calculation
1 parent
dfba1d86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
mailbox/header.c
mailbox/header.c
View file @
d76cc0e
...
...
@@ -333,12 +333,7 @@ mu_header_set_value (mu_header_t header, const char *fn, const char *fv,
header
->
hdr
[
i
].
fn
[
1
]
=
'\0'
;
}
/* Readjust the pointers. */
/* FIXME: I'm not sure this 3 will work when the
original data looked like:
Field : Value
Test this... and why not just do a strlen(blurb)?
*/
len
-=
fn_len
+
fv_len
+
3
;
/* :<sp>\n */
len
-=
header
->
hdr
[
i
].
fv_end
-
header
->
hdr
[
i
].
fn
+
1
;
i
--
;
blurb
=
header
->
blurb
;
header_parse
(
header
,
blurb
,
len
);
...
...
Please
register
or
sign in
to post a comment