Skip to content
GitLab
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
59be36d5
Commit
59be36d5
authored
Mar 18, 2002
by
Niels Möller
Browse files
(ssh_format): Use the format string as the
debugging "clue" for the string. Rev: src/format.c:1.44
parent
4f7c8fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/format.c
View file @
59be36d5
...
...
@@ -42,8 +42,12 @@ struct lsh_string *ssh_format(const char *format, ...)
length
=
ssh_vformat_length
(
format
,
args
);
va_end
(
args
);
#if DEBUG_ALLOC
packet
=
lsh_string_alloc_clue
(
length
,
format
);
#else
packet
=
lsh_string_alloc
(
length
);
#endif
va_start
(
args
,
format
);
ssh_vformat_write
(
format
,
length
,
packet
->
data
,
args
);
va_end
(
args
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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