Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
553c8532
Commit
553c8532
authored
Sep 22, 1998
by
Niels Möller
Browse files
Formatting bignums was seriously broken.
Rev: src/format.c:1.14
parent
b94c1965
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/format.c
View file @
553c8532
...
...
@@ -364,15 +364,17 @@ UINT32 ssh_vformat(char *f, UINT8 *buffer, va_list args)
case
'n'
:
{
MP_INT
*
n
=
va_arg
(
args
,
MP_INT
*
);
UINT32
length
=
bignum_format_s
(
n
,
buffer
);
UINT32
length
;
UINT8
*
start
=
buffer
;
/* Where to store the length */
if
(
!
literal
)
buffer
+=
4
;
length
=
bignum_format_s
(
n
,
buffer
);
buffer
+=
length
;
if
(
!
literal
)
{
WRITE_UINT32
(
buffer
,
length
);
buffer
+=
4
;
}
WRITE_UINT32
(
start
,
length
);
f
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment