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
daf9fced
...
daf9fceded320cdd2f3d1bac1fe92ec665b69780
authored
2003-08-12 11:34:21 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(print_simple_segment): Bugfix.
1 parent
9a1a450b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
mh/mh_format.c
mh/mh_format.c
View file @
daf9fce
...
...
@@ -261,7 +261,12 @@ print_simple_segment (struct mh_machine *mach, size_t width,
rest
=
width
-
mach
->
ind
;
if
(
rest
==
0
)
{
if
(
len
==
1
&&
str
[
0
]
==
'\n'
)
put_string
(
mach
,
str
,
len
);
return
;
}
if
(
len
>
rest
)
len
=
rest
;
...
...
@@ -1879,10 +1884,27 @@ builtin_concat (struct mh_machine *mach)
static
void
builtin_printhdr
(
struct
mh_machine
*
mach
)
{
char
*
tmp
=
NULL
;
size_t
s
=
0
;
if
(
!
strobj_is_null
(
&
mach
->
arg_str
))
print_hdr_string
(
mach
,
strobj_ptr
(
&
mach
->
arg_str
));
{
s
=
strobj_len
(
&
mach
->
arg_str
);
tmp
=
strdup
(
strobj_ptr
(
&
mach
->
arg_str
));
}
if
(
!
strobj_is_null
(
&
mach
->
reg_str
))
print_hdr_string
(
mach
,
strobj_ptr
(
&
mach
->
reg_str
));
{
s
+=
strobj_len
(
&
mach
->
reg_str
)
+
1
;
tmp
=
realloc
(
tmp
,
s
);
strcat
(
tmp
,
strobj_ptr
(
&
mach
->
reg_str
));
}
if
(
tmp
)
{
print_hdr_string
(
mach
,
tmp
);
free
(
tmp
);
}
}
static
void
...
...
Please
register
or
sign in
to post a comment