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
c7b72e28
...
c7b72e28a2825d64581626d32f80185447420040
authored
2002-12-11 15:18:17 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(struct mh_machine): Changed type of arg_num to long.
1 parent
442ca3c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
mh/mh_format.c
mh/mh_format.c
View file @
c7b72e2
...
...
@@ -35,7 +35,7 @@ struct mh_machine
int
reg_num
;
/* Numeric register */
strobj_t
arg_str
;
/* String argument */
int
arg_num
;
/* Numeric argument */
long
arg_num
;
/* Numeric argument */
size_t
pc
;
/* Program counter */
size_t
progsize
;
/* Size of allocated program*/
...
...
@@ -351,7 +351,7 @@ mh_format (mh_format_t *fmt, message_t msg, size_t msgno,
/* Convert arg_num to arg_str */
case
mhop_num_to_str
:
snprintf
(
buf
,
sizeof
buf
,
"%
d
"
,
mach
.
arg_num
);
snprintf
(
buf
,
sizeof
buf
,
"%
l
"
,
mach
.
arg_num
);
strobj_free
(
&
mach
.
arg_str
);
strobj_create
(
&
mach
.
arg_str
,
buf
);
break
;
...
...
@@ -643,7 +643,9 @@ builtin_cur (struct mh_machine *mach)
static
void
builtin_size
(
struct
mh_machine
*
mach
)
{
message_size
(
mach
->
message
,
&
mach
->
arg_num
);
size_t
size
;
if
(
message_size
(
mach
->
message
,
&
size
)
==
0
)
mach
->
arg_num
=
size
;
}
static
void
...
...
Please
register
or
sign in
to post a comment